Opened 9 years ago

Closed 9 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


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/", line 467, in _dispatch_request
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8744-py2.5.egg/trac/web/", 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/", 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/", 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 9 years ago by larsivar@…

Resolution: invalid
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.