[Zope3-checkins] SVN: zope.formlib/trunk/src/zope/formlib/ Fix for https://bugs.launchpad.net/zope.formlib/+bug/143930
Albertas Agejevas
alga at pov.lt
Wed Jun 16 09:02:48 EDT 2010
Log message for revision 113530:
Fix for https://bugs.launchpad.net/zope.formlib/+bug/143930
Could not reproduce the problem, but the fix seems harmless.
Changed:
U zope.formlib/trunk/src/zope/formlib/form.txt
U zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py
-=-
Modified: zope.formlib/trunk/src/zope/formlib/form.txt
===================================================================
--- zope.formlib/trunk/src/zope/formlib/form.txt 2010-06-16 13:00:50 UTC (rev 113529)
+++ zope.formlib/trunk/src/zope/formlib/form.txt 2010-06-16 13:02:48 UTC (rev 113530)
@@ -814,9 +814,9 @@
Let's try changing some data:
- >>> request.form['form.max_size'] = u'10,0'
+ >>> request.form['form.max_size'] = u'10/0'
>>> print MyForm(order, request)()
- ... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
+ ... # doctest: +NORMALIZE_WHITESPACE
There were errors:
(u'Invalid floating point data', <exceptions.ValueError instance at ...>)
1
@@ -825,7 +825,7 @@
<input class="textType" id="form.min_size" name="form.min_size" size="10"
type="text" value="42.0" />
<input class="textType" id="form.max_size" name="form.max_size" size="10"
- type="text" value="10,0" />
+ type="text" value="10/0" />
<span class="error">Invalid floating point data</span>
<input type="submit" id="form.actions.edit" name="form.actions.edit"
value="Edit" class="button" />
Modified: zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py
===================================================================
--- zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py 2010-06-16 13:00:50 UTC (rev 113529)
+++ zope.formlib/trunk/src/zope/formlib/tests/test_formlib.py 2010-06-16 13:02:48 UTC (rev 113530)
@@ -526,7 +526,7 @@
r"[<zope.formlib.interfaces.WidgetInputError instance at ...>]"),
(re.compile(r"\[WidgetInputError\('summary', u'Summary', None\)\]"),
r"[<zope.formlib.interfaces.WidgetInputError instance at ...>]"),
- (re.compile(r" ValueError\('invalid literal for float\(\): (bob'|10,0'),\)"),
+ (re.compile(r" ValueError\('invalid literal for float\(\): (bob'|10/0'),\)"),
r"\n <exceptions.ValueError instance at ...>"),
])
return unittest.TestSuite((
More information about the Zope3-Checkins
mailing list