[Zope3-checkins] CVS: zopeproducts/PsycopgDA - Adapter.py:1.5 configure.zcml:1.3
Viktorija Zaksiene
ryzaja@codeworks.lt
Wed, 8 Jan 2003 11:34:14 -0500
Update of /cvs-repository/zopeproducts/PsycopgDA
In directory cvs.zope.org:/tmp/cvs-serv3852
Modified Files:
Adapter.py configure.zcml
Log Message:
Fixed import and access paths.
TODO:
- Apply grand renaming rules for PsycopgDA product.
=== zopeproducts/PsycopgDA/Adapter.py 1.4 => 1.5 ===
--- zopeproducts/PsycopgDA/Adapter.py:1.4 Wed Dec 11 03:02:38 2002
+++ zopeproducts/PsycopgDA/Adapter.py Wed Jan 8 11:33:41 2003
@@ -16,9 +16,9 @@
$Id$
"""
-from Persistence import Persistent
-from Zope.App.RDB.ZopeDatabaseAdapter import ZopeDatabaseAdapter, parseDSN
-from Zope.App.RDB.ZopeConnection import ZopeConnection
+from persistence import Persistent
+from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
+from zope.app.rdb import ZopeConnection
from datetime import date, time, timetz, datetime, datetimetz, timedelta
import psycopg
@@ -222,7 +222,7 @@
def _conv_timetz(s):
if s:
- from Zope.Misc.DateTimeParse import tzinfo
+ from zope.app.datetimeutils import tzinfo
hr, mn, sc, tz = parse_timetz(s)
sc, micro = divmod(sc, 1.0)
micro = round(micro * 1000000)
@@ -238,7 +238,7 @@
def _conv_timestamptz(s):
if s:
- from Zope.Misc.DateTimeParse import tzinfo
+ from zope.app.datetimeutils import tzinfo
y, m, d, hr, mn, sc, tz = parse_datetimetz(s)
sc, micro = divmod(sc, 1.0)
micro = round(micro * 1000000)
=== zopeproducts/PsycopgDA/configure.zcml 1.2 => 1.3 ===
--- zopeproducts/PsycopgDA/configure.zcml:1.2 Wed Dec 11 03:02:38 2002
+++ zopeproducts/PsycopgDA/configure.zcml Wed Jan 8 11:33:41 2003
@@ -4,10 +4,10 @@
<content class=".Adapter.PsycopgAdapter">
<factory id="PsycopgDA"
- permission="Zope.Public" />
- <require permission="Zope.Public"
- interface="Zope.App.RDB.IZopeDatabaseAdapter." />
- <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
+ permission="zope.Public" />
+ <require permission="zope.Public"
+ interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter." />
+ <implements interface="zope.app.interfaces.annotation.IAttributeAnnotatable." />
</content>
<include package=".Views" />