Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 14 years ago

#4068 closed defect (fixed)

WebAdmin web_ui needs to import sorted for py23 compat

Reported by: Tim Hatch <trac@…> Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: admin/web Version: devel
Severity: trivial Keywords: webadmin python23
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Got this using trunk@r4137 today:

2006-11-03 09:58:26,900 Trac[main] DEBUG: Dispatching <Request "GET /admin">
2006-11-03 09:58:26,909 Trac[main] ERROR: global name 'sorted' is not defined
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 383, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/admin/web_ui.py", line 84, in process_request
    data.update({
NameError: global name 'sorted' is not defined

And here's the fix:

  • trac/admin/web_ui.py

     
    2727from trac import __version__ as TRAC_VERSION
    2828from trac.admin.api import IAdminPanelProvider
    2929from trac.core import *
     30from trac.util.compat import sorted
    3031from trac.perm import PermissionSystem
    3132from trac.web import HTTPNotFound, IRequestHandler
    3233from trac.web.chrome import add_script, add_stylesheet, Chrome, \

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 18 years ago

Milestone: 0.11
Owner: changed from Christopher Lenz to Christian Boos
Severity: normaltrivial
Status: newassigned

Ok…

comment:2 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r4139, thanks!

comment:3 by Remy Blank, 14 years ago

Keywords: python23 added; python2.3 removed

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.