--- a/src/pyams_form/group.py Fri Apr 27 18:16:21 2018 +0200
+++ b/src/pyams_form/group.py Fri Apr 27 18:17:26 2018 +0200
@@ -137,10 +137,10 @@
def NamedWidgetsGroup(form, id, widgets, names=(), bordered=True, fieldset_class=None, legend=None, help=None,
css_class='', switch=False, checkbox_switch=False, checkbox_field=None, checkbox_mode='hide',
- hide_if_empty=False):
+ hide_if_empty=False, factory=FormWidgetsGroup):
"""Create a widgets group based on widgets names"""
- return FormWidgetsGroup(form, id, [widgets.get(name) for name in names], bordered, fieldset_class, legend, help,
- css_class, switch, checkbox_switch, checkbox_field, checkbox_mode, hide_if_empty)
+ return factory(form, id, [widgets.get(name) for name in names], bordered, fieldset_class, legend, help,
+ css_class, switch, checkbox_switch, checkbox_field, checkbox_mode, hide_if_empty)
@implementer(IGroupsBasedForm)