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: coderanger
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 7 years ago by larsivar@…

  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.