Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5315 closed defect (fixed)

Failure on ticket view - 'sorted not defined'

Reported by: tjb@… Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Updated to trac r5392 this morning, using apache 2.0.49, python 2.3.4, SLES 9, mod_python

The Wiki page loads OK, View Tickets" loads OK, ticket report runs OK, but selecting a ticket causes an ERROR in trac/ticket/

Attachments (0)

Change History (4)

comment:1 by tjb@…, 17 years ago

Some detail; from the error report follows:

 Trac detected an internal error:

 NameError: global name 'sorted' is not defined

Python Traceback
Most recent call last:

    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/web/main.py", line 428, in dispatch_request
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/web/main.py", line 216, in dispatch
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/web_ui.py", line 124, in process_request
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/web_ui.py", line 350, in _process_ticket_request
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/context.py", line 242, in _get_resource
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/api.py", line 352, in get_resource
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/model.py", line 39, in __init__
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/api.py", line 452, in get_ticket_fields
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/model.py", line 447, in select
    * File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5398-py2.3.egg/trac/ticket/api.py", line 417, in get_all_states

comment:2 by arnarb+trac@…, 17 years ago

sorted() is a new Python 2.4 built-in. The use of it is breaking 2.3 compatibility and either the requirements should be updated or an alternative implementation of sorted() provided for python 2.3.

comment:3 by Christian Boos, 17 years ago

Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Severity: normaltrivial
Status: newassigned

Ok, before we get flooded by reports (#5323), I'll take care of this one…

comment:4 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Done in r5403.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.