Modify

Opened 4 years ago

Last modified 4 years ago

#7296 new enhancement

0.12 compatability

Reported by: yoheeb@… Owned by: takanorig
Priority: normal Component: TicketExtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I love this plugin. However we have moved to 0.12 and this plugin doesn't seem to work with it. Hopefully 0.12 is on your roadmap.

2010-06-24 14:35:24,826 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "C:\usr\bin\Python26\lib\site-packages\trac\web\main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\usr\bin\Python26\lib\site-packages\trac\web\main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\ticketext\template.py", line 93, in process_request
    template_api.process_tickettemplate(self.env, req, 'type')
  File "build\bdist.win32\egg\ticketext\api.py", line 62, in process_tickettemplate
    req.write(response)
  File "C:\usr\bin\Python26\lib\site-packages\trac\web\api.py", line 530, in write
    raise ValueError("Can't send unicode content")
ValueError: Can't send unicode content

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by anonymous

  • Trac Release changed from 0.11 to 0.12

comment:2 Changed 4 years ago by evb

probably related to http://trac.edgewall.org/ticket/8675

Did change line 62 in file api.py from

req.write(response)

to

req.write(response.encode("UTF-8"))

The error did go away, but the plugin doesn't seam to work. Selecting another type of ticket does not update the screen to reflect the template configuration for the new selected type of ticket...

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.