Patches item #1483018, was opened at 2006-05-06 19:19
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1483018&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: Invalid
Priority: 5
Submitted By: Russ Ferriday (russf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Play nicely with mxDateTime
Initial Comment:
Related to version:
===========
URL: http://svn.colorstudy.com/SQLObject/trunk
Repository UUID: 95a46c32-92d2-0310-94a5-8d71aeb3d4b3
Revision: 1748
Fixes problem:
=========
File "/usr/local/zope/python/lib/python2.4/site-packages/
SQLObject-0.8dev_r1746-py2.4.egg/sqlobject/col.py", line 63, in ?
TimeType = type(DateTime.Time())
AttributeError: 'module' object has no attribute 'Time'
Description:
========
I'm using SQLObject with Zope and Python 2.4.
Path to Time is longer than the original code was expecting. And it
needs a param - DateTime.
Patch:
====
--- col.py.orig 2006-05-05 19:30:39.000000000 +0100
+++ col.py 2006-05-06 16:02:33.000000000 +0100
@@ -60,7 +60,7 @@
if mxdatetime_available:
DateTimeType = type(DateTime.now())
- TimeType = type(DateTime.Time())
+ TimeType = type(DateTime.DateTime.Time(DateTime.DateTime()))
if datetime_available:
default_datetime_implementation = DATETIME_IMPLEMENTATION
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-05-18 19:03
Message:
Logged In: YES
user_id=4799
The patch is invalid. Try this from the command line:
> python
Python 2.4.3 (#2, Apr 4 2006, 23:50:10)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> from mx import DateTime
>>> print type(DateTime.Time())
<type 'DateTimeDelta'>
>>> print type(DateTime.DateTime.Time(DateTime.DateTime()))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'builtin_function_or_method' object has no
attribute 'Time'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1483018&group_id=74338
|