[Checkins] SVN: z3c.form/trunk/src/z3c/form/group.py Update remaining implementers of the IForm interface with the new (optional) prefix argument.
Malthe Borch
cvs-admin at zope.org
Mon Nov 5 09:35:37 UTC 2012
Log message for revision 128171:
Update remaining implementers of the IForm interface with the new (optional) prefix argument.
Changed:
U z3c.form/trunk/src/z3c/form/group.py
-=-
Modified: z3c.form/trunk/src/z3c/form/group.py
===================================================================
--- z3c.form/trunk/src/z3c/form/group.py 2012-10-31 21:43:03 UTC (rev 128170)
+++ z3c.form/trunk/src/z3c/form/group.py 2012-11-05 09:35:36 UTC (rev 128171)
@@ -32,12 +32,14 @@
self.request = request
self.parentForm = self.__parent__ = parentForm
- def updateWidgets(self):
+ def updateWidgets(self, prefix=None):
'''See interfaces.IForm'''
for attrName in ('mode', 'ignoreRequest', 'ignoreContext',
'ignoreReadonly'):
value = getattr(self.parentForm.widgets, attrName)
setattr(self.widgets, attrName, value)
+ if prefix is not None:
+ self.widgets.prefix = prefix
self.widgets.update()
def update(self):
@@ -119,9 +121,9 @@
return changed
- def updateWidgets(self):
+ def updateWidgets(self, prefix=None):
'''See interfaces.IForm'''
- super(GroupForm, self).updateWidgets()
+ super(GroupForm, self).updateWidgets(prefix=prefix)
groups = []
for groupClass in self.groups:
More information about the checkins
mailing list