[Checkins] SVN: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py fix 'if' statement to really avoid updating widgets if not required
Laurent Mignon
Laurent.Mignon at softwareag.com
Thu Feb 11 02:55:46 EST 2010
Log message for revision 108920:
fix 'if' statement to really avoid updating widgets if not required
Changed:
U z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
-=-
Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py 2010-02-11 04:25:37 UTC (rev 108919)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py 2010-02-11 07:55:45 UTC (rev 108920)
@@ -371,7 +371,7 @@
config['layout'] = self.layout
if self.form.label:
config['title'] = self.form.label
- if not self.form.widgets:
+ if self.form.widgets is None:
self.form.updateWidgets()
items = getWidgetsConfig(self.form, asDict=False)
if items:
More information about the checkins
mailing list