Roundup Tracker - Issues

Issue 986538

classification
invalid input in Date field -> exception
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : pohly, richard
Priority: normal :

Created on 2004-07-07 12:10 by pohly, last changed 2004-07-07 12:10 by pohly.

Files
File name Uploaded Description Edit Remove
traceback pohly, 2004-07-07 12:10
Messages
msg1347 Author: [hidden] (pohly) Date: 2004-07-07 12:10
- add a Date() entry to an issue in the classic tracker
- add an input field for it in issue.item.html
- create a new issue, type "xxxx" into that field
- submit

Results in the traceback attached. The input check works
when modifying an existing item. To fix it, I added a check
against str into DateHTMLProperty.field:

        if self._value is None:
            value = ''
        elif type(self._value) is type(''):
            value = self._value
        else:
            tz = self._db.getUserTimezone()
            value = cgi.escape(str(self._value.local(tz)))

Now it works nicely. Roundup version is 0.7.5.
History
Date User Action Args
2004-07-07 12:10:14pohlycreate