[Zope3-checkins] CVS: Zope3/src/zope/app/services - field.py:1.4

Steve Alexander steve@cat-box.net
Thu, 9 Jan 2003 14:13:52 -0500


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv32588/src/zope/app/services

Modified Files:
	field.py 
Log Message:
put the interface where it belongs



=== Zope3/src/zope/app/services/field.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/field.py:1.3	Thu Jan  9 12:28:44 2003
+++ Zope3/src/zope/app/services/field.py	Thu Jan  9 14:13:49 2003
@@ -17,23 +17,11 @@
 """
 __metaclass__ = type
 
-from zope.schema.interfaces import IField
 from zope.schema import Field
 from zope.schema.interfaces import ValidationError
 from zope.app.traversing import traverse
-from zope.app.component.interfacefield import InterfaceField
 from zope.exceptions import NotFoundError
-
-class IComponentPath(IField):
-    """A field containing a component path.
-    """
-
-    type = InterfaceField(
-        title = u"An interface that must be implemented by the component.",
-        required = True,
-        readonly = True,
-        basetype = None
-        )
+from zope.app.interfaces.services.field import IComponentPath
 
 class ComponentPath(Field):
 
@@ -58,5 +46,4 @@
 
         if not self.type.isImplementedBy(component):
             raise ValidationError("Wrong component type", value)
-