summaryrefslogtreecommitdiff
path: root/src/zope/schema/interfaces.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2018-09-10 18:15:57 -0500
committerJason Madden <jamadden@gmail.com>2018-09-10 18:15:57 -0500
commitd3716f40710a3643b5e6f0d4e5249fd3bbf1a7e0 (patch)
tree7ddfb7139354b1b25ba18c9a8f2006ea23d7fc18 /src/zope/schema/interfaces.py
parentfebb909462a1f3b6422a5e04a3df5a4613dee0ba (diff)
downloadzope-schema-issue65.tar.gz
Add 'bound' to TooShort|Long|Big|Smallissue65
Using a common superclass. Unify a bunch of the tests for these and remove duplication.
Diffstat (limited to 'src/zope/schema/interfaces.py')
-rw-r--r--src/zope/schema/interfaces.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/zope/schema/interfaces.py b/src/zope/schema/interfaces.py
index dbdc913..7223397 100644
--- a/src/zope/schema/interfaces.py
+++ b/src/zope/schema/interfaces.py
@@ -41,9 +41,12 @@ from zope.schema._bootstrapinterfaces import IContextAwareDefaultFactory
from zope.schema._bootstrapinterfaces import IFromUnicode
from zope.schema._bootstrapinterfaces import IValidatable
from zope.schema._bootstrapinterfaces import InvalidValue
+from zope.schema._bootstrapinterfaces import LenOutOfBounds
from zope.schema._bootstrapinterfaces import NotAContainer
from zope.schema._bootstrapinterfaces import NotAnInterface
from zope.schema._bootstrapinterfaces import NotAnIterator
+from zope.schema._bootstrapinterfaces import OrderableOutOfBounds
+from zope.schema._bootstrapinterfaces import OutOfBounds
from zope.schema._bootstrapinterfaces import RequiredMissing
from zope.schema._bootstrapinterfaces import SchemaNotCorrectlyImplemented
from zope.schema._bootstrapinterfaces import SchemaNotFullyImplemented
@@ -57,6 +60,8 @@ from zope.schema._bootstrapinterfaces import ValidationError
from zope.schema._bootstrapinterfaces import WrongContainedType
from zope.schema._bootstrapinterfaces import WrongType
+
+
from zope.schema._compat import PY3
from zope.schema._messageid import _
@@ -68,10 +73,13 @@ __all__ = [
'InvalidId',
'InvalidURI',
'InvalidValue',
+ 'LenOutOfBounds',
'NotAContainer',
'NotAnInterface',
'NotAnIterator',
'NotUnique',
+ 'OrderableOutOfBounds',
+ 'OutOfBounds',
'RequiredMissing',
'SchemaNotCorrectlyImplemented',
'SchemaNotFullyImplemented',
@@ -86,6 +94,7 @@ __all__ = [
'WrongContainedType',
'WrongType',
+
# Interfaces
'IASCII',
'IASCIILine',