Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#7857 closed defect (invalid)

NameError: global name 'sorted' is not defined

Reported by: mothik@… Owned by:
Priority: high Milestone:
Component: admin/web Version: 0.11.2.1
Severity: normal Keywords:
Cc: mothik@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /admin/accounts/config, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'cat_id': u'accounts', 'panel_id': u'config', 'path_info': None}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

System Information

Trac 0.11.2.1
Python 2.3.4 (#1, Jul 25 2008, 14:24:21)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)]
setuptools 0.6c9
SQLite 3.3.6
pysqlite 1.1.7
Genshi 0.5.1
Subversion 1.1.4 (r13838)
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11.2.1-py2.3.egg/trac/web/main.py", line 432, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11.2.1-py2.3.egg/trac/web/main.py", line 204, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11.2.1-py2.3.egg/trac/admin/web_ui.py", line 114, in process_request
    path_info)
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 114, in render_admin_panel
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 155, in _do_config
NameError: global name 'sorted' is not defined

Attachments (0)

Change History (1)

comment:1 by ebray, 15 years ago

Keywords: I have add ed following line " from trac.util.compat import sorted " in web_ui.py removed
Resolution: invalid
Status: newclosed

That part in the description that says "(please provide additional details here)" is where you should provide, well, additional details. Not in the keywords.

Also, this is an issue with the th:AccountManagerPlugin, so you should check over there for existing tickets for this issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.