[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/component - interfacefield.py:1.5

Fred L. Drake, Jr. fred@zope.com
Mon, 14 Apr 2003 14:22:06 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/component
In directory cvs.zope.org:/tmp/cvs-serv28909/src/zope/app/interfaces/component

Modified Files:
	interfacefield.py 
Log Message:
Rename IValueSet to IEnumerated, and ValueSet to Enumerated.
Treat these more like mixins than like directly useful things.


=== Zope3/src/zope/app/interfaces/component/interfacefield.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interfaces/component/interfacefield.py:1.4	Mon Jan  6 13:39:36 2003
+++ Zope3/src/zope/app/interfaces/component/interfacefield.py	Mon Apr 14 14:21:35 2003
@@ -16,25 +16,26 @@
 $Id$
 """
 
-from zope.schema import Field
-from zope.schema.interfaces import IValueSet, ITuple
 from zope.interface import Interface
+from zope.schema import Field
+from zope.schema.interfaces import IEnumerated, IField, ITuple
 
-class IInterfaceField(IValueSet):
+class IInterfaceField(IEnumerated, IField):
     u"""A type of Field that has an Interfaces as its value."""
 
-    basetype = Field(title=u"Base type",
-                 description=u"All values must extend (or be) this type,"
-                              " unless it is None which means 'anything'.",
-                 default=Interface,
-                 )
+    basetype = Field(
+        title=u"Base type",
+        description=(u"All values must extend (or be) this type,"
+                     u" unless it is None which means 'anything'."),
+        default=Interface,
+        )
 
 class IInterfacesField(ITuple):
     u"""A type of Field that is has a tuple of Interfaces as its value."""
 
     basetype = Field(
             title=u"Base type",
-            description=u"All values must extend or be this type,"
-                         " unless it is None, which means 'anything'.",
+            description=(u"All values must extend or be this type,"
+                         u" unless it is None, which means 'anything'."),
             default=Interface,
             )