Edgewall Software
Modify

Ticket #4068 (closed defect: fixed)

Opened 5 years ago

Last modified 16 months ago

WebAdmin web_ui needs to import sorted for py23 compat

Reported by: Tim Hatch <trac@…> Owned by: cboos
Priority: normal Milestone: 0.11
Component: admin/web Version: devel
Severity: trivial Keywords: webadmin python23
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 5 years ago by cboos

  • Milestone set to 0.11
  • Owner changed from cmlenz to cboos
  • Severity changed from normal to trivial
  • Status changed from new to assigned

Ok...

comment:2 Changed 5 years ago by cboos

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r4139, thanks!

comment:3 Changed 16 months ago by rblank

  • Keywords python23 added; python2.3 removed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.