Modify ↓
Opened 7 years ago
Closed 7 years ago
#13320 closed defect (duplicate)
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
How to Reproduce
While doing a GET operation on /admin/accounts/users
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'cat_id': u'accounts', 'panel_id': u'users', 'path_info': None}
User agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.2; rv:11.0) like Gecko
System Information
Trac | 1.2.2
|
Genshi | 0.7 (without speedups)
|
pysqlite | 2.6.0
|
Python | 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
|
pytz | 2016.10
|
setuptools | 0.9.8
|
SQLite | 3.7.17
|
jQuery | 1.11.3
|
jQuery UI | 1.11.4
|
jQuery Timepicker | 1.5.5
|
Enabled Plugins
AdvancedTicketWorkflowPlugin | 1.2.0dev
|
ComponentDependencyPlugin | 0.1
|
timingandestimationplugin | 1.4.8b
|
TracAccountManager | 0.4.4
|
TracAutocompleteUsersPlugin | 0.4.3dev
|
TracCustomFieldAdmin | 0.2.12
|
TracDateField | 3.0.0dev
|
TracTicketChangesets | 1.0dev
|
TracWorkflowAdmin | 0.12.0.2
|
Interface Customization
shared-htdocs | |
shared-templates | |
site-htdocs | FMM_Image.png , tracworkflowadmin
|
site-templates |
Python Traceback
Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 623, in _dispatch_request dispatcher.dispatch(req) File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 239, in dispatch resp = chosen_handler.process_request(req) File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 109, in process_request provider.render_admin_panel(req, cat_id, panel_id, path_info) File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 204, in render_admin_panel return self._do_users(req) File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 449, in _do_users data['accounts'] = fetch_user_data(env, req) File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 73, in fetch_user_data authenticated=None).iteritems(): File "build/bdist.linux-x86_64/egg/acct_mgr/model.py", line 123, in get_user_attribute db = _get_db(env, db) File "build/bdist.linux-x86_64/egg/acct_mgr/model.py", line 292, in _get_db return db or env.get_db_cnx() AttributeError: 'Environment' object has no attribute 'get_db_cnx'
Attachments (0)
Change History (3)
comment:1 Changed 7 years ago by
Priority: | high → normal |
---|---|
Resolution: | → duplicate |
Severity: | critical → normal |
Status: | new → closed |
comment:2 Changed 7 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | closed → new |
Please upgrade with https://trac-hacks.org/svn/accountmanagerplugin/trunk for Trac 1.2 and later.
comment:3 Changed 7 years ago by
Status: | new → closed |
---|
Note: See
TracTickets for help on using
tickets.
The same tickets have been reported.
Please search the same issue before creating a new ticket.
See query:"col=summary|time|reporter|status|resolution&order=time&component=AccountManagerPlugin&summary=AttributeError: 'Environment' object has no attribute 'get_db_cnx'"