Roundup Tracker - Issues

Message1119

Author mdurbin
Recipients
Date 2004-02-20.22:50:27
Message-id
In-reply-to
Tried to use python:msg.date.local(-6) to convert GMT 
to CST and got error indicating that __init_ required 7 
arguments and I was only providing 6. 

In cgi/templating.py, the local method of class  
DateHTMLProperty returns a DateHTMLProperty item 
whose argument is missing the _classname argument 
required of the HTMLProperty constructor. When I 
provide that arg the error goes away and the local() 
method works per documentation.

Here's the code:

######
# mdurbin hack
# this return is one-argument short for the 
HTMLProperty constructor,
# so I added classname and it works
#
#        return DateHTMLProperty(self._client, 
self._nodeid, self._prop,
#            self._formname, self._value.local(offset))
        return DateHTMLProperty(self._client, 
self._classname, self._nodeid, self._prop,
            self._formname, self._value.local(offset))



History
Date User Action Args
2009-02-03 14:20:36adminlinkissue901444 messages
2009-02-03 14:20:36admincreate