[Zope3-checkins] CVS: zopeproducts/psycopgda - adapter.py:1.2
Viktorija Zaksiene
ryzaja@codeworks.lt
Mon, 12 May 2003 04:18:51 -0400
Update of /cvs-repository/zopeproducts/psycopgda
In directory cvs.zope.org:/tmp/cvs-serv17448
Modified Files:
adapter.py
Log Message:
Cleanup: removed unused imports and whitespaces.
=== zopeproducts/psycopgda/adapter.py 1.1 => 1.2 ===
--- zopeproducts/psycopgda/adapter.py:1.1 Thu Jan 9 06:38:56 2003
+++ zopeproducts/psycopgda/adapter.py Mon May 12 04:18:20 2003
@@ -2,23 +2,21 @@
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""PostgreSQL Database Adapter for Zope 3
$Id$
"""
-from persistence import Persistent
from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
-from zope.app.rdb import ZopeConnection
from datetime import date, time, datetime, timedelta
import psycopg
@@ -56,7 +54,7 @@
def parse_time(s):
"""Parses ISO-8601 compliant times and returns a tuple (hour, minute,
second).
-
+
The following formats are accepted:
HH:MM:SS.ssss or HHMMSS.ssss
HH:MM:SS,ssss or HHMMSS,ssss
@@ -90,7 +88,7 @@
def parse_tz(s):
"""Parses ISO-8601 timezones and returns the offset east of UTC in
minutes.
-
+
The following formats are accepted:
+/-HH:MM
+/-HHMM
@@ -287,7 +285,7 @@
XXX: INTERVAL cannot be represented exactly as datetime.timedelta since
it might be something like '1 month', which is a variable number of days.
"""
-
+
__implements__ = ZopeDatabaseAdapter.__implements__
def _connection_factory(self):