[Zope3-checkins] CVS: zopeproducts/psycopgda - adapter.py:1.3

Viktorija Zaksiene ryzaja@codeworks.lt
Mon, 2 Jun 2003 03:35:59 -0400


Update of /cvs-repository/zopeproducts/psycopgda
In directory cvs.zope.org:/tmp/cvs-serv23308

Modified Files:
	adapter.py 
Log Message:
Change __implements__ to the new style.


=== zopeproducts/psycopgda/adapter.py 1.2 => 1.3 ===
--- zopeproducts/psycopgda/adapter.py:1.2	Mon May 12 04:18:20 2003
+++ zopeproducts/psycopgda/adapter.py	Mon Jun  2 03:35:58 2003
@@ -17,6 +17,7 @@
 """
 
 from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
+from zope.interface import implements, implementedBy
 
 from datetime import date, time, datetime, timedelta
 import psycopg
@@ -286,7 +287,7 @@
     it might be something like '1 month', which is a variable number of days.
     """
 
-    __implements__ = ZopeDatabaseAdapter.__implements__
+    implements(implementedBy(ZopeDatabaseAdapter))
 
     def _connection_factory(self):
         """Create a Psycopg DBI connection based on the DSN"""