[Zope3-checkins] SVN: Zope3/trunk/ Fix for #551
Lennart Regebro
regebro at gmail.com
Thu Aug 17 11:13:22 EDT 2006
Log message for revision 69607:
Fix for #551
Changed:
U Zope3/trunk/doc/CHANGES.txt
U Zope3/trunk/src/zope/app/form/browser/sequencewidget.py
-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt 2006-08-17 15:06:37 UTC (rev 69606)
+++ Zope3/trunk/doc/CHANGES.txt 2006-08-17 15:13:22 UTC (rev 69607)
@@ -22,13 +22,6 @@
Bug fixes
- - Fixed issue 680, html files in a resource directory was interpreted
- as page templates, which used up processing time and caused
- HTML-resources that were not valid XHTML to fail.
-
- If you want your resources in a resource directory to be interpreted
- as pagetemplates they now need to have a .pt or .zpt extension.
-
- Fixed issue 676, utilities defined in Zope 3.2 weren't
converted properly.
@@ -218,7 +211,16 @@
- Fixed issues 648 and 593: uploading files with non-ASCII filenames now
works.
+
+ - Fixed issue 680, html files in a resource directory was interpreted
+ as page templates, which used up processing time and caused
+ HTML-resources that were not valid XHTML to fail.
+
+ If you want your resources in a resource directory to be interpreted
+ as pagetemplates they now need to have a .pt or .zpt extension.
+ - 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/trunk/src/zope/app/form/browser/sequencewidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/sequencewidget.py 2006-08-17 15:06:37 UTC (rev 69606)
+++ Zope3/trunk/src/zope/app/form/browser/sequencewidget.py 2006-08-17 15:13:22 UTC (rev 69607)
@@ -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