You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.
That would be nice to find a way to automatically add groups (group of fields) in an form (and autoform) without overriding the form.
my idea:
in fieldsets/extensible.py
class ExtensibleForm(GroupForm):
...
def getGroups(self):
adapters = getAdapters((self.context, self.request, self), IDescriptiveGroup)
groups = [group[1] for group in adapters if group[1].available]
return groups
There could be also a zcml instruction like
<plone:formgroup
name="theform.mycustomgroup"
for="plone.views.IAvailableForm"
layer="IMyBrowserLayer"
class=".mygroups.Mygroup"
order="7"
/>
What do you think?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
That would be nice to find a way to automatically add groups (group of fields) in an form (and autoform) without overriding the form.
my idea:
in fieldsets/extensible.py
class ExtensibleForm(GroupForm):
...
def getGroups(self):
adapters = getAdapters((self.context, self.request, self), IDescriptiveGroup)
groups = [group[1] for group in adapters if group[1].available]
return groups
There could be also a zcml instruction like
<plone:formgroup
name="theform.mycustomgroup"
for="plone.views.IAvailableForm"
layer="IMyBrowserLayer"
class=".mygroups.Mygroup"
order="7"
/>
What do you think?
The text was updated successfully, but these errors were encountered: