plone / plone.patternslib

An add-on to make patternslib patterns available within Plone 5.
https://pypi.org/project/plone.patternslib/
GNU General Public License v2.0
2 stars 5 forks source link

Better support for easyform/z3cform in pat-depends #73

Closed MrTango closed 2 years ago

MrTango commented 2 years ago

I added support for conditional fields to easyform: https://github.com/collective/collective.easyform/pull/352 But pat-depends has some problems with some fields/widgets like SingleCheckBoxBoolFieldWidget and SelectField. And support for multiselections is missing completly.

The problem with SingleCheckBoxBoolFieldWidget and SelectWidget is that, the fields have a name with a trainling :list which is not supported by pat-depends yet. This would be also needed for the support of multiselections.

For multiselections we need to either add a syntax option in the condition or reuse the ~= substring expression to act as a "current value in list".