Patches item #1589289, was opened at 2006-11-02 07:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1589289&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jason R. Coombs (jaraco)
Assigned to: Nobody/Anonymous (nobody)
Summary: Zope 2.9 DateTime library compatability
Initial Comment:
I'm using Python 2.4 with Zope 2.9.4. SQLObject fails
to initialize with the following error:
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> import sqlobject
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "c:\program
files\python\lib\site-packages\SQLObject-0.7.1-py2.4.egg\sqlo
bject\__init__.py", line 1, in ?
from main import *
File "c:\program
files\python\lib\site-packages\SQLObject-0.7.1-py2.4.egg\sqlo
bject\main.py", line 37, in ?
import dbconnection
File "c:\program
files\python\lib\site-packages\SQLObject-0.7.1-py2.4.egg\sqlo
bject\dbconnection.py", line 18, in ?
import col
File "c:\program
files\python\lib\site-packages\SQLObject-0.7.1-py2.4.egg\sqlo
bject\col.py", line 62, in ?
DateTimeType = type(DateTime.now())
AttributeError: 'module' object has no attribute 'now'
The following patch addresses the issue. It appears to
be in the same vein as patch 1483018.
--- col.py 2006-11-02 09:04:28.186951200 -0500
+++ \col.py 2006-11-02 09:05:38.673858600 -0500
@@ -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:
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1589289&group_id=74338
|