[cvsnt] Re: ViewCVS Question (SOLVED)

Dan Pupek dpupek at astpcola.com
Wed Feb 23 00:26:41 GMT 2005


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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 cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
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 cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook