Modify

Opened 5 years ago

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

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

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

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

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.