Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9413 closed defect (duplicate)

Wrong parameter type in ticket/web_ui.py in method _process_ticket_request

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.1-py2.6.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.1-py2.6.egg/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.1-py2.6.egg/trac/ticket/web_ui.py", line 170, in process_request
    return self._process_ticket_request(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.1-py2.6.egg/trac/ticket/web_ui.py", line 482, in _process_ticket_request
    tag.p('in your ', tag.tt('trac.ini'), '.'))
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.1-py2.6.egg/trac/web/chrome.py", line 116, in add_warning
    req.chrome['warnings'].append(msg % args)
TypeError: unsupported operand type(s) for %: 'Fragment' and 'tuple'

I solved this problem this way:

add_warning(req,
tag(tag.p('Please review your configuration, '
         'probably starting with'),
    tag.pre('[trac]\nworkflow = ...\n'),
    tag.p('in your ', tag.tt('trac.ini'), '.')).__html__()

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

Milestone: 0.11.7.1
Resolution: duplicate
Status: newclosed
Version: 0.11.70.11.1

Have you tried to upgrade?

Duplicate of #7474.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.