[Checkins] SVN: plone.z3cform/trunk/ Only search a group's widgets if they exist. collective.z3cform.wizard doesn't
Laurence Rowe
l at lrowe.co.uk
Wed Apr 13 07:08:55 EDT 2011
Log message for revision 121417:
Only search a group's widgets if they exist. collective.z3cform.wizard doesn't
create widgets for pages/groups other than the current one.
Changed:
U plone.z3cform/trunk/docs/HISTORY.txt
U plone.z3cform/trunk/plone/z3cform/traversal.py
-=-
Modified: plone.z3cform/trunk/docs/HISTORY.txt
===================================================================
--- plone.z3cform/trunk/docs/HISTORY.txt 2011-04-13 01:02:26 UTC (rev 121416)
+++ plone.z3cform/trunk/docs/HISTORY.txt 2011-04-13 11:08:54 UTC (rev 121417)
@@ -4,6 +4,10 @@
0.7.4 - unreleased
------------------
+* Only search a group's widgets if they exist. collective.z3cform.wizard doesn't
+ create widgets for pages/groups other than the current one
+ [lentinj, elro]
+
* Deal with forward compatibility with Zope 2.14.
* Adds Brazilian Portuguese translation.
Modified: plone.z3cform/trunk/plone/z3cform/traversal.py
===================================================================
--- plone.z3cform/trunk/plone/z3cform/traversal.py 2011-04-13 01:02:26 UTC (rev 121416)
+++ plone.z3cform/trunk/plone/z3cform/traversal.py 2011-04-13 11:08:54 UTC (rev 121417)
@@ -65,7 +65,7 @@
widget = form.widgets.get(name)
elif getattr(aq_base(form), 'groups', None) is not None:
for group in form.groups:
- if name in group.widgets:
+ if group.widgets and name in group.widgets:
widget = group.widgets.get(name)
# Make the parent of the widget the traversal parent.
More information about the checkins
mailing list