[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - connection.py:1.12

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Aug 19 04:10:21 EDT 2003


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

Modified Files:
	connection.py 
Log Message:
Heads up, this is the beginning of Servicegeddon. We noticed that named 
components are a pain in the butt and that we can simpluify our code a lot
by making these named components local utilities. 

So I started with the SQL Connection service and database adapters and 
simplified the code greatly. Database Adaptors are now just simple 
utilities.

I also took the oppurtunity and updated all database adapters. 

This change is not backward compatible and you will have to toss your ZODB.
Although all tests pass, I expect there to be some hickups, so feel free to 
fix or report these. 

Next I will fix up the front screen a bit and try to factor some other 
pieces. I also still miss some functionality in the Utilities, which I plan
to add.




=== Zope3/src/zope/app/interfaces/services/connection.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/interfaces/services/connection.py:1.11	Thu Aug  7 20:14:41 2003
+++ Zope3/src/zope/app/interfaces/services/connection.py	Tue Aug 19 03:09:45 2003
@@ -15,36 +15,8 @@
 
 $Id$
 """
-from zope.app.i18n import ZopeMessageIDFactory as _
-from zope.app.interfaces.services.registration import IComponentRegistration
-from zope.app.interfaces.services.registration import ComponentPath
 from zope.app.interfaces.rdb import IConnectionService
-from zope.app.interfaces.services.registration \
-     import INameComponentRegistry
-from zope.schema import TextLine
 
-class IConnectionRegistration(IComponentRegistration):
-    """Database Connection Registration
-
-    Connection registrations are dependent on the database adapters that they
-    configure. They register themselves as component dependents.
-    """
-
-    name = TextLine(
-        title=_("Name"),
-        description=_("The name that is registered"),
-        readonly=True,
-        required=True,
-        min_length=1,
-        )
-
-    componentPath = ComponentPath(
-        title=_("Component path"),
-        description=_("The physical path to the component"),
-        readonly=True,
-        required=True)
-
-
-class ILocalConnectionService(IConnectionService, INameComponentRegistry):
+class ILocalConnectionService(IConnectionService):
     """A local (placeful) connection service"""
 




More information about the Zope3-Checkins mailing list