[Checkins] SVN: zope.schema/trunk/src/zope/schema/_field.py more information about invalid fields
Godefroid Chapelle
gotcha at bubblenet.be
Tue Dec 8 10:20:47 EST 2009
Log message for revision 106296:
more information about invalid fields
Changed:
U zope.schema/trunk/src/zope/schema/_field.py
-=-
Modified: zope.schema/trunk/src/zope/schema/_field.py
===================================================================
--- zope.schema/trunk/src/zope/schema/_field.py 2009-12-08 15:06:30 UTC (rev 106295)
+++ zope.schema/trunk/src/zope/schema/_field.py 2009-12-08 15:20:47 UTC (rev 106296)
@@ -414,7 +414,7 @@
super(AbstractCollection, self)._validate(value)
errors = _validate_sequence(self.value_type, value)
if errors:
- raise WrongContainedType(errors)
+ raise WrongContainedType(errors, self.__name__)
if self.unique:
_validate_uniqueness(value)
@@ -493,7 +493,7 @@
# check the value against schema
errors = _validate_fields(self.schema, value)
if errors:
- raise WrongContainedType(errors)
+ raise WrongContainedType(errors, self.__name__)
def set(self, object, value):
# Announce that we're going to assign the value to the object.
@@ -545,7 +545,7 @@
errors = _validate_sequence(self.key_type, value, errors)
if errors:
- raise WrongContainedType(errors)
+ raise WrongContainedType(errors, self.__name__)
finally:
errors = None
More information about the checkins
mailing list