[Zope3-checkins] SVN: Zope3/branches/3.3/ Fixed issue 551: Sequence
widget ignored default values.
Lennart Regebro
regebro at gmail.com
Thu Aug 17 11:06:37 EDT 2006
Log message for revision 69606:
Fixed issue 551: Sequence widget ignored default values.
Changed:
U Zope3/branches/3.3/doc/CHANGES.txt
U Zope3/branches/3.3/src/zope/app/form/browser/sequencewidget.py
-=-
Modified: Zope3/branches/3.3/doc/CHANGES.txt
===================================================================
--- Zope3/branches/3.3/doc/CHANGES.txt 2006-08-17 15:01:12 UTC (rev 69605)
+++ Zope3/branches/3.3/doc/CHANGES.txt 2006-08-17 15:06:37 UTC (rev 69606)
@@ -305,6 +305,8 @@
Bug Fixes
+ - Fixed issue 551: Sequence widget ignored default values.
+
- Fix get_rendered in zope.formlib. Make use of get_rendered in
setUpInputWidget which is used in AddFormBase.
Modified: Zope3/branches/3.3/src/zope/app/form/browser/sequencewidget.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/form/browser/sequencewidget.py 2006-08-17 15:01:12 UTC (rev 69605)
+++ Zope3/branches/3.3/src/zope/app/form/browser/sequencewidget.py 2006-08-17 15:06:37 UTC (rev 69606)
@@ -128,6 +128,8 @@
sequence = list(self._data)
elif self.hasInput():
sequence = self._generateSequence()
+ elif self.context.default is not None:
+ sequence = self.context.default
else:
sequence = []
# ensure minimum number of items in the form
More information about the Zope3-Checkins
mailing list