[Zope3-checkins] SVN: zope.formlib/trunk/ Adapt to upcoming zope.schema 3.5.1 for making tests pass.
Christian Theune
ct at gocept.com
Fri Jan 30 11:36:12 EST 2009
Log message for revision 95585:
Adapt to upcoming zope.schema 3.5.1 for making tests pass.
Changed:
U zope.formlib/trunk/CHANGES.txt
U zope.formlib/trunk/setup.py
U zope.formlib/trunk/src/zope/formlib/form.txt
-=-
Modified: zope.formlib/trunk/CHANGES.txt
===================================================================
--- zope.formlib/trunk/CHANGES.txt 2009-01-30 16:35:55 UTC (rev 95584)
+++ zope.formlib/trunk/CHANGES.txt 2009-01-30 16:36:12 UTC (rev 95585)
@@ -5,6 +5,7 @@
3.5.1 (unreleased)
==================
+- Adapt tests to upcoming zope.schema release 3.5.1.
3.5.0 (2009-01-26)
==================
Modified: zope.formlib/trunk/setup.py
===================================================================
--- zope.formlib/trunk/setup.py 2009-01-30 16:35:55 UTC (rev 95584)
+++ zope.formlib/trunk/setup.py 2009-01-30 16:36:12 UTC (rev 95585)
@@ -58,7 +58,7 @@
'zope.interface',
'zope.lifecycleevent',
'zope.publisher',
- 'zope.schema',
+ 'zope.schema>=3.5.1dev',
'zope.security',
'zope.traversing',
],
Modified: zope.formlib/trunk/src/zope/formlib/form.txt
===================================================================
--- zope.formlib/trunk/src/zope/formlib/form.txt 2009-01-30 16:35:55 UTC (rev 95584)
+++ zope.formlib/trunk/src/zope/formlib/form.txt 2009-01-30 16:36:12 UTC (rev 95585)
@@ -195,8 +195,8 @@
>>> request.form['submit'] = u'Submit'
>>> MyForm(None, request)() # doctest: +NORMALIZE_WHITESPACE
There were errors:
- ('min_size', u'Minimum size', )
- ('max_size', u'Maximum size', )
+ ('min_size', u'Minimum size', RequiredMissing())
+ ('max_size', u'Maximum size', RequiredMissing())
<input class="textType" id="form.name" name="form.name" size="20"
type="text" value="bob" />
<input class="textType" id="form.min_size" name="form.min_size" size="10"
@@ -218,7 +218,7 @@
There were errors:
(u'Invalid floating point data',
<exceptions.ValueError instance at ...>)
- ('max_size', u'Maximum size', )
+ ('max_size', u'Maximum size', RequiredMissing())
<input class="textType" id="form.name" name="form.name" size="20"
type="text" value="bob" />
<input class="textType" id="form.min_size" name="form.min_size" size="10"
@@ -347,7 +347,7 @@
>>> pprint(MyForm(None, request)()) # doctest: +NORMALIZE_WHITESPACE
There were field errors:
- ('name', u'Name', )
+ ('name', u'Name', RequiredMissing())
There were invariant errors:
Maximum is less than Minimum
<input class="textType" id="form.name" name="form.name" size="20"
@@ -367,8 +367,8 @@
>>> pprint(MyForm(None, request)()) # doctest: +NORMALIZE_WHITESPACE
There were field errors:
- ('name', u'Name', )
- ('max_size', u'Maximum size', )
+ ('name', u'Name', RequiredMissing())
+ ('max_size', u'Maximum size', RequiredMissing())
<input class="textType" id="form.name" name="form.name" size="20"
type="text" value="" />
<span class="error">Required input is missing.</span>
More information about the Zope3-Checkins
mailing list