[Zope3-checkins] CVS: Zope3/src/zope/app/rdb - __init__.py:1.8 gadflyda.py:1.4

Steve Alexander steve@cat-box.net
Wed, 4 Jun 2003 06:47:07 -0400


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

Modified Files:
	__init__.py gadflyda.py 
Log Message:
new style implements().
This caused other changes to schemagen.


=== Zope3/src/zope/app/rdb/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/rdb/__init__.py:1.7	Mon May 12 05:01:24 2003
+++ Zope3/src/zope/app/rdb/__init__.py	Wed Jun  4 06:46:36 2003
@@ -28,6 +28,8 @@
 
 from zope.security import checker
 
+from zope.interface import implements
+
 from zope.app.interfaces.rdb import DatabaseException
 from zope.app.interfaces.rdb import IResultSet, ISQLCommand
 from zope.app.interfaces.rdb import IZopeConnection, IZopeCursor
@@ -42,7 +44,7 @@
     Currently we don't do lazy instantation of rows.
     """
 
-    __implements__ = IResultSet
+    implements(IResultSet)
     __slots__ = ('columns',)
 
     def __init__(self, columns, rows):
@@ -74,7 +76,7 @@
 class SQLCommand:
     """A simple version of a SQL Command."""
 
-    __implements__ = ISQLCommand
+    implements(ISQLCommand)
 
     def __init__(self, connection_name='', sql=''):
         self.connectionName = connection_name
@@ -96,7 +98,7 @@
 
 class ZopeDatabaseAdapter(Persistent):
 
-    __implements__ = IZopeDatabaseAdapter
+    implements(IZopeDatabaseAdapter)
     _v_connection =  None
 
     def __init__(self, dsn):
@@ -218,7 +220,7 @@
 
 
 class ZopeCursor:
-    __implements__ = IZopeCursor
+    implements(IZopeCursor)
 
     def __init__(self, cursor, connection):
         self.cursor = cursor
@@ -266,7 +268,7 @@
 
 class ZopeConnection:
 
-    __implements__ =  IZopeConnection
+    implements(IZopeConnection)
 
     def __init__(self, conn, typeinfo):
         self.conn = conn
@@ -328,7 +330,7 @@
 
 class ZopeDBTransactionManager:
 
-    __implements__ =  IDataManager
+    implements(IDataManager)
 
     def __init__(self, dbconn):
         self._dbconn = dbconn


=== Zope3/src/zope/app/rdb/gadflyda.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/rdb/gadflyda.py:1.3	Thu May  1 15:35:30 2003
+++ Zope3/src/zope/app/rdb/gadflyda.py	Wed Jun  4 06:46:36 2003
@@ -29,8 +29,6 @@
 class GadflyAdapter(ZopeDatabaseAdapter):
     """A Gadfly adapter for Zope3"""
 
-    __implements__ = ZopeDatabaseAdapter.__implements__
-
     def _getGadflyRoot(self):
         # XXX: Need to write a configuration directive for setting this up
         # At the moment gadfly root is 'gadfly' under the instance home (which