Modify ↓
Opened 16 years ago
Closed 14 years ago
#4849 closed defect (duplicate)
"NameError: global name 'sorted' is not defined" after clicking "Users"
Reported by: | silverblood | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | NameError Users |
Cc: | Trac Release: | 0.11 |
Description
after clicking "Users" in the admin tab, a "NameError: global name 'sorted' is not defined" is received. this would seem to be an issue related to python 2.3 compatibility.
my solution was to edit acct_mgr/admin.py and replace the line:
from trac.util import sorted
with:
from trac.util.compat import set, sorted
and rebuild the egg.
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
comment:2 follow-up: 3 Changed 14 years ago by
Owner: | changed from John Hampton to Steffen Hoffmann |
---|
As in recent Trac versions trac/util/init module sorted
is imported from trac/util/compat.py, this is certainly a valid assertion.
comment:3 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
a better version of the above fix that still seems to work correctly, but not fully tested as I lack a way to test with a newer version of python.