Modify ↓
#4068 closed defect (fixed)
WebAdmin web_ui needs to import sorted for py23 compat
Reported by: | 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
27 27 from trac import __version__ as TRAC_VERSION 28 28 from trac.admin.api import IAdminPanelProvider 29 29 from trac.core import * 30 from trac.util.compat import sorted 30 31 from trac.perm import PermissionSystem 31 32 from trac.web import HTTPNotFound, IRequestHandler 32 33 from trac.web.chrome import add_script, add_stylesheet, Chrome, \
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
Milestone: | → 0.11 |
---|---|
Owner: | changed from | to
Severity: | normal → trivial |
Status: | new → assigned |
comment:3 by , 14 years ago
Keywords: | python23 added; python2.3 removed |
---|
Note:
See TracTickets
for help on using tickets.
Ok…