[Zope3-checkins] CVS: Zope3/src/zope/schema - _bootstrapfields.py:1.27

Jim Fulton jim at zope.com
Mon Mar 15 13:12:39 EST 2004


Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv4822/src/zope/schema

Modified Files:
	_bootstrapfields.py 
Log Message:
Changed the check to make sure that required values are not missing to
use a field's missing value, rather than None.  This addresses
an XXX comment.


=== Zope3/src/zope/schema/_bootstrapfields.py 1.26 => 1.27 ===
--- Zope3/src/zope/schema/_bootstrapfields.py:1.26	Fri Jan 16 08:38:20 2004
+++ Zope3/src/zope/schema/_bootstrapfields.py	Mon Mar 15 13:12:39 2004
@@ -148,7 +148,7 @@
         return clone
 
     def validate(self, value):
-        if value == None: # XXX None should be self.missing_value
+        if value == self.missing_value:
             if self.required:
                 raise ValidationError(errornames.RequiredMissing)
         else:




More information about the Zope3-Checkins mailing list