[cvsnt] Re: ViewCVS Question (SOLVED)
Dan Pupek
dpupek at astpcola.com
Wed Feb 23 00:26:41 GMT 2005
Ok I found the problem (or should I say a posting about the problem)...maybe
it's fixed in the latest version.
In dbi.py @ line 53 Replace:
else: # datetime is an mx.DateTime object
t = datetime.tuple()
WITH:
elif hasattr(datetime, "timetuple"):
# datetime is a Python >=2.3 datetime.DateTime object
t = datetime.timetuple()
else:
# datetime is an eGenix mx.DateTime object
t = datetime.tuple()
Python >= 2.3 replaces datetime.tuple with datetime.timetuple.
Dan Pupek
Software Engineer
Advanced Systems Technology, Inc
dpupek at astpcola.com <mailto:dpupek at astpcola.com>
(850) 475-4038
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Dan Pupek
Sent: Tuesday, February 22, 2005 6:05 PM
To: bo.berglund at telia.com
Cc: CVSNT Mailing List
Subject: RE: [cvsnt] Re: ViewCVS Question
ViewCvs version? 1.0.r5j
Platform, operating system? Windows 2003 Server
Webserver type? IIS 6 using CGI
CVSNT version? 2.0.58d
Python version? 2.3
Dan Pupek
Software Engineer
Advanced Systems Technology, Inc
dpupek at astpcola.com <mailto:dpupek at astpcola.com>
(850) 475-4038
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Bo Berglund
Sent: Tuesday, February 22, 2005 3:41 PM
To: cvsnt at cvsnt.org
Subject: [cvsnt] Re: ViewCVS Question
On Tue, 22 Feb 2005 14:51:43 -0600, "Dan Pupek" <dpupek at astpcola.com>
wrote:
>Any reason I would receive this error when using query:
>
>File "Z:\ViewCvs\lib\dbi.py", line 53, in TicksFromDateTime
> t = datetime.tuple()
>AttributeError: 'datetime.datetime' object has no attribute 'tuple'
>
ViewCvs version?
Platform, operating system?
Webserver type?
CVSNT version?
Python version?
How did you install ViewCvs?
etc
/Bo
(Bo Berglund, developer in Sweden)
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list