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
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
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
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
Note: See
TracTickets for help on using
tickets.



Ok...