[SQL-CVS] r2066 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-11-10 14:41:40
|
Author: phd
Date: 2006-11-10 07:41:31 -0700 (Fri, 10 Nov 2006)
New Revision: 2066
Modified:
SQLObject/trunk/sqlobject/col.py
Log:
The patch 1589289: Zope 2.9 DateTime library compatability.
Modified: SQLObject/trunk/sqlobject/col.py
===================================================================
--- SQLObject/trunk/sqlobject/col.py 2006-11-10 05:58:53 UTC (rev 2065)
+++ SQLObject/trunk/sqlobject/col.py 2006-11-10 14:41:31 UTC (rev 2066)
@@ -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:
|