[Zope3-checkins] CVS: Zope3/src/zope/app/container -
constraints.py:1.7
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Apr 11 06:35:10 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv4471/src/zope/app/container
Modified Files:
constraints.py
Log Message:
Updated tests to reflect API changes.
=== Zope3/src/zope/app/container/constraints.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/container/constraints.py:1.6 Fri Mar 5 17:08:59 2004
+++ Zope3/src/zope/app/container/constraints.py Sun Apr 11 06:34:40 2004
@@ -75,7 +75,7 @@
>>> checkObject(c1, "bob", O())
Traceback (most recent call last):
...
- ValidationError: (u'Constraint not satisfied', C1)
+ ConstraintNotSatisfied: C1
Note that the validation error isn't very informative. For that
reason, it's better for constraints to raise Invalid errors when they
More information about the Zope3-Checkins
mailing list