[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - rdb.py:1.3

Sidnei da Silva sidnei@x3ng.com.br
Mon, 7 Jul 2003 13:15:25 -0400


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

Modified Files:
	rdb.py 
Log Message:
Adding GlobalConnectionService, with tests (few, but theres not much to test anyway)

=== Zope3/src/zope/app/interfaces/rdb.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/rdb.py:1.2	Wed Dec 25 09:12:56 2002
+++ Zope3/src/zope/app/interfaces/rdb.py	Mon Jul  7 13:14:50 2003
@@ -137,7 +137,7 @@
 
     def fetchone():
         """Fetch the next row of a query result set, returning a single
-        sequence, or None when no more data is available. [6]
+        sequence, or None when no more data is available.
 
         An Error (or subclass) exception is raised if the previous call to
         executeXXX() did not produce any result set or no call was issued yet.
@@ -315,6 +315,13 @@
 
     def getAvailableConnections():
         """Returns the connections available from this connection service."""
+
+
+class IGlobalConnectionService(IConnectionService):
+    """A global connection service"""
+
+    def provideConnection(name, adapter, dsn):
+        """ Register a connection instance for site-wide use """
 
 
 class IDBIConnection(Interface):