Modify

Opened 7 years ago

Closed 7 years ago

#6165 closed defect (invalid)

Get unicode error in timeline with Trac 0.12

Reported by: larsivar@… 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)

Change History (1)

comment:1 Changed 7 years ago by larsivar@…

Resolution: invalid
Status: newclosed

It was my genshi web_ui.py fixing that did the wrong thing. It works fine now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.