[Zope3-checkins] CVS: Products3/PsycopgDA - Adapter.py:1.4 configure.zcml:1.2
Viktorija Zaksiene
ryzaja@codeworks.lt
Wed, 11 Dec 2002 03:02:39 -0500
Update of /cvs-repository/Products3/PsycopgDA
In directory cvs.zope.org:/tmp/cvs-serv22262
Modified Files:
Adapter.py configure.zcml
Log Message:
Moved IAttributeAnnotatable declaration to configure.zcml
=== Products3/PsycopgDA/Adapter.py 1.3 => 1.4 ===
--- Products3/PsycopgDA/Adapter.py:1.3 Mon Dec 9 10:59:14 2002
+++ Products3/PsycopgDA/Adapter.py Wed Dec 11 03:02:38 2002
@@ -19,7 +19,6 @@
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
@@ -289,8 +288,8 @@
it might be something like '1 month', which is a variable number of days.
"""
- __implements__ = ZopeDatabaseAdapter.__implements__, IAttributeAnnotatable
-
+ __implements__ = ZopeDatabaseAdapter.__implements__
+
def _connection_factory(self):
"""Create a Psycopg DBI connection based on the DSN"""
conn_info = parseDSN(self.dsn)
=== Products3/PsycopgDA/configure.zcml 1.1 => 1.2 ===
--- Products3/PsycopgDA/configure.zcml:1.1 Wed Nov 13 05:13:22 2002
+++ Products3/PsycopgDA/configure.zcml Wed Dec 11 03:02:38 2002
@@ -7,6 +7,7 @@
permission="Zope.Public" />
<require permission="Zope.Public"
interface="Zope.App.RDB.IZopeDatabaseAdapter." />
+ <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
</content>
<include package=".Views" />