[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - configuration.py:1.7.2.4 utility.py:1.1.2.5
Jim Fulton
jim@zope.com
Wed, 19 Mar 2003 16:09:07 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv21546/src/zope/app/interfaces/services
Modified Files:
Tag: local-utility-branch
configuration.py utility.py
Log Message:
Added a new component path field and widget that simply shows the
component path for the compontent being configured. We no longer
select a component because configuration is done from the component
bing configured.
=== Zope3/src/zope/app/interfaces/services/configuration.py 1.7.2.3 => 1.7.2.4 ===
--- Zope3/src/zope/app/interfaces/services/configuration.py:1.7.2.3 Tue Mar 18 16:10:04 2003
+++ Zope3/src/zope/app/interfaces/services/configuration.py Wed Mar 19 16:09:06 2003
@@ -22,7 +22,6 @@
from zope.app.security.permission import PermissionField
from zope.app.interfaces.annotation import IAnnotatable
from zope.app.interfaces.annotation import IAttributeAnnotatable
-from zope.app.services.field import ComponentPath
Unregistered = u'Unregistered'
Registered = u'Registered'
@@ -83,6 +82,21 @@
# configuration class.
label = Attribute("Descriptive label of the configuration type "
"(for example, Service, Connection)")
+
+
+class IComponentPath(ITextLine):
+ """A component path
+ """
+ # This is juse the interface for the ComponentPath field below.
+ # We'll use this as the basis for looking up an appriate widget.
+
+class ComponentPath(TextLine):
+ """A component path
+
+ Values of the field are absolute unicode path strings that can be
+ traversed to get an object.
+ """
+ __implements__ = IComponentPath
class IComponentConfiguration(IConfiguration):
=== Zope3/src/zope/app/interfaces/services/utility.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/src/zope/app/interfaces/services/utility.py:1.1.2.4 Tue Mar 18 16:10:04 2003
+++ Zope3/src/zope/app/interfaces/services/utility.py Wed Mar 19 16:09:06 2003
@@ -21,7 +21,7 @@
from zope.app.security.permission import PermissionField
from zope.schema import BytesLine, TextLine
from zope.app.interfaces.services.configuration import IUseConfigurable
-from zope.app.services.field import ComponentPath
+from zope.app.interfaces.services.configuration import ComponentPath
class IUtilityConfiguration(IComponentConfiguration):
"""Utility configuration object.