Author: phd
Date: 2006-11-10 07:42:45 -0700 (Fri, 10 Nov 2006)
New Revision: 2068
Modified:
SQLObject/branches/0.7-bugfix/docs/News.txt
SQLObject/branches/0.7-bugfix/sqlobject/col.py
Log:
The patch 1589289: Zope 2.9 DateTime library compatability.
Modified: SQLObject/branches/0.7-bugfix/docs/News.txt
===================================================================
--- SQLObject/branches/0.7-bugfix/docs/News.txt 2006-11-10 14:41:49 UTC (rev 2067)
+++ SQLObject/branches/0.7-bugfix/docs/News.txt 2006-11-10 14:42:45 UTC (rev 2068)
@@ -24,6 +24,8 @@
* Fixed a bug in InheritableSQLObject related to the order of tableRegistry
dictionary.
+* A bug fix that allows to use SQLObject with DateTime from Zope.
+
SQLObject 0.7.1
===============
Modified: SQLObject/branches/0.7-bugfix/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/col.py 2006-11-10 14:41:49 UTC (rev 2067)
+++ SQLObject/branches/0.7-bugfix/sqlobject/col.py 2006-11-10 14:42:45 UTC (rev 2068)
@@ -59,10 +59,11 @@
MXDATETIME_IMPLEMENTATION = "mxDateTime"
if mxdatetime_available:
- DateTimeType = type(DateTime.now())
if hasattr(DateTime, "Time"):
+ DateTimeType = type(DateTime.now())
TimeType = type(DateTime.Time())
else: # Zope
+ DateTimeType = type(DateTime.DateTime())
TimeType = type(DateTime.DateTime.Time(DateTime.DateTime()))
if datetime_available:
|