[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - field.py:1.2
Steve Alexander
steve@cat-box.net
Fri, 10 Jan 2003 13:46:57 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv6406/src/zope/app/interfaces/services
Modified Files:
field.py
Log Message:
Created a ComponentLocation field to specify a location by path or by
dotted module name.
=== Zope3/src/zope/app/interfaces/services/field.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/interfaces/services/field.py:1.1 Thu Jan 9 14:13:48 2003
+++ Zope3/src/zope/app/interfaces/services/field.py Fri Jan 10 13:46:24 2003
@@ -17,14 +17,24 @@
from zope.schema.interfaces import IField
from zope.app.component.interfacefield import InterfaceField
+from zope.interface import Interface
-class IComponentPath(IField):
- 'A field containing a component path.'
-
+class IComponentRelated(Interface):
+ 'An interface for something that is related to a single component.'
+
type = InterfaceField(
title = u"An interface that must be implemented by the component.",
required = True,
readonly = True,
basetype = None
)
+
+class IComponentLocation(IComponentRelated):
+ '''A field containing a component location.
+
+ This is as an absolute path, or as a dotted module name.'''
+
+
+class IComponentPath(IComponentRelated):
+ 'A field containing a component path.'