[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - connection.py:1.3
Jim Fulton
jim@zope.com
Fri, 21 Mar 2003 16:04:45 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv19631/src/zope/app/interfaces/services
Modified Files:
connection.py
Log Message:
Reformatted to shorten import.
Changed to override the component path field to use the old component
path field until we have a chance to redo the way connection
components are handled.
=== Zope3/src/zope/app/interfaces/services/connection.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/services/connection.py:1.2 Wed Dec 25 09:13:02 2002
+++ Zope3/src/zope/app/interfaces/services/connection.py Fri Mar 21 16:04:44 2003
@@ -15,13 +15,19 @@
$Id$
"""
+from zope.app.services.field import ComponentPath
+from zope.app.interfaces.services import configuration
+from zope.app.interfaces.rdb import IZopeDatabaseAdapter
-from zope.app.interfaces.services.configuration \
- import INamedComponentConfiguration
-
-class IConnectionConfiguration(INamedComponentConfiguration):
+class IConnectionConfiguration(configuration.INamedComponentConfiguration):
"""Database Connection Configuration
Connection configurations are dependent on the database adapters that they
configure. They register themselves as component dependents.
"""
+
+ componentPath = ComponentPath(
+ type=IZopeDatabaseAdapter,
+ title=u"Component path",
+ description=u"The physical path to the component",
+ required=True)