Modify ↓
Opened 15 years ago
Closed 15 years ago
#6165 closed defect (invalid)
Get unicode error in timeline with Trac 0.12
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | RobotsTxtPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
I have installed the RobotsTxtPlugin into a recent checkout of the Trac 0.12 multirepo branch.
I changed the template to a Genshi one, and process_request such that it fits with Genshi.
When I now try to wget the robots.txt to test, I get
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8744-py2.5.egg/trac/web/main.py", line 467, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8744-py2.5.egg/trac/web/main.py", line 223, in dispatch self._post_process_request(req, *resp) File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8744-py2.5.egg/trac/web/main.py", line 329, in _post_process_request resp = f.post_process_request(req, *resp) File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8744-py2.5.egg/trac/timeline/web_ui.py", line 258, in post_process_request data['dateinfo'] = dateinfo TypeError: 'unicode' object does not support item assignment
Attachments (0)
Note: See
TracTickets for help on using
tickets.
It was my genshi web_ui.py fixing that did the wrong thing. It works fine now.