Issue 1041266
Created on 2004-10-06 08:37 by don_fu, last changed 2004-10-07 05:38 by richard.
File name |
Uploaded |
Description |
Edit |
Remove |
patch.txt
|
don_fu,
2004-10-06 08:37
|
templating.py quick-and-dirty-patch |
|
|
msg1464 |
Author: [hidden] (don_fu) |
Date: 2004-10-06 08:37 |
|
When an Interval property receives a new value, the
history of the item can't be displayed anymore. The
html-generating code for the history in templating.py
looks broken for Interval (and for Date). The attached
patch cures the problem, but ignores i18n.
|
msg1465 |
Author: [hidden] (richard) |
Date: 2004-10-07 05:38 |
|
Logged In: YES
user_id=6405
Sorry, I can't reproduce a problem here. Could you spell out
what you mean by "When an Interval property receives a new
value" in a step-by-step manner, using a fresh demo instance.
Also, I presume you're referring to the current CVS HEAD.
|
msg1466 |
Author: [hidden] (don_fu) |
Date: 2004-10-07 07:49 |
|
Logged In: YES
user_id=1083360
Yes, I'm on CVS HEAD here. I could reproduce the bug here on
MySQL with a fresh tracker:
- create a tracker with a mysql backend
- add a property i=Interval() to the user class in schema.py
- add an form field to html/user.item.html for the new property
- Set the new property to a value for some user
- this works and is correctly displayed in the history
- Now change the property by setting it to a new value
- The history can't be displayed anymore (see tb below)
studied the history code a while, but I'm not in a position
to fix it properly ;)
stefan.
File
"/home/atw/cvstracker/cvs/roundup/cgi/PageTemplates/Expressions.py",
line 95, in render
ob = ob()
File "/home/atw/cvstracker/cvs/roundup/cgi/templating.py",
line 912, in history
translator=self._client))
File "/home/atw/cvstracker/cvs/roundup/date.py", line 480,
in __init__
if len(spec) == 7:
AttributeError: Interval instance has no attribute '__len__'
|
|
Date |
User |
Action |
Args |
2004-10-06 08:37:39 | don_fu | create | |
|