[Zope-Checkins] CVS: Zope3/lib/python/Schema - _Schema.py:1.7

Martijn Faassen m.faassen@vet.uu.nl
Sun, 14 Jul 2002 14:54:21 -0400


Update of /cvs-repository/Zope3/lib/python/Schema
In directory cvs.zope.org:/tmp/cvs-serv6683

Modified Files:
	_Schema.py 
Log Message:
Added clarifying comment on contract of validate* functions.


=== Zope3/lib/python/Schema/_Schema.py 1.6 => 1.7 ===
     this way."""
     
 
+# validate functions either return silently, or raise a ValidationError
+# or in case of the validate*All functions, a ValidationErrosAll exception.
+# this should somehow be stated in an interface.
+
 def validateMapping(schema, values):
     """Pass in field values in mapping and validate whether they
     conform to schema. Stop at first error.