[Zope3-checkins] CVS: Products3/PsycopgDA - Adapter.py:1.3
Viktorija Zaksiene
ryzaja@codeworks.lt
Mon, 9 Dec 2002 10:59:15 -0500
Update of /cvs-repository/Products3/PsycopgDA
In directory cvs.zope.org:/tmp/cvs-serv29596
Modified Files:
Adapter.py
Log Message:
Fixed Psycopg adapter to fit new ConnectionService schema
=== Products3/PsycopgDA/Adapter.py 1.2 => 1.3 ===
--- Products3/PsycopgDA/Adapter.py:1.2 Mon Dec 2 06:12:37 2002
+++ Products3/PsycopgDA/Adapter.py Mon Dec 9 10:59:14 2002
@@ -19,6 +19,7 @@
from Persistence import Persistent
from Zope.App.RDB.ZopeDatabaseAdapter import ZopeDatabaseAdapter, parseDSN
from Zope.App.RDB.ZopeConnection import ZopeConnection
+from Zope.App.OFS.Annotation.IAttributeAnnotatable import IAttributeAnnotatable
from datetime import date, time, timetz, datetime, datetimetz, timedelta
import psycopg
@@ -288,7 +289,7 @@
it might be something like '1 month', which is a variable number of days.
"""
- __implements__ = ZopeDatabaseAdapter.__implements__
+ __implements__ = ZopeDatabaseAdapter.__implements__, IAttributeAnnotatable
def _connection_factory(self):
"""Create a Psycopg DBI connection based on the DSN"""