[Zope3-checkins] CVS: Zope3/src/zope/schema -
_bootstrapinterfaces.py:1.2
Jim Fulton
cvs-admin at zope.org
Mon Dec 1 11:19:45 EST 2003
Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv11382/src/zope/schema
Modified Files:
_bootstrapinterfaces.py
Log Message:
Made ValidationError extend Invalid
=== Zope3/src/zope/schema/_bootstrapinterfaces.py 1.1 => 1.2 ===
--- Zope3/src/zope/schema/_bootstrapinterfaces.py:1.1 Wed Oct 15 16:28:22 2003
+++ Zope3/src/zope/schema/_bootstrapinterfaces.py Mon Dec 1 11:19:44 2003
@@ -15,7 +15,7 @@
$Id$
"""
-from zope.interface import Interface
+import zope.interface
class StopValidation(Exception):
@@ -26,7 +26,7 @@
"""
-class ValidationError(Exception):
+class ValidationError(zope.interface.Invalid):
"""Raised if the Validation process fails."""
def __cmp__(self, other):
@@ -35,7 +35,7 @@
def __repr__(self):
return ' '.join(map(str, self.args))
-class IFromUnicode(Interface):
+class IFromUnicode(zope.interface.Interface):
"""Parse a unicode string to a value
We will often adapt fields to this interface to support views and
More information about the Zope3-Checkins
mailing list