Modify ↓
#13250 closed defect (duplicate)
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
| Reported by: | justplay1994 | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | AccountManagerPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.3 |
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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
System Information
Trac | 1.3.1
|
Babel | 2.4.0
|
Genshi | 0.7 (without speedups)
|
MySQL | server: "5.7.19", client: "5.6.37", thread-safe: 1
|
MySQLdb | 1.2.5
|
Python | 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
|
pytz | 2012d
|
setuptools | 0.9.8
|
jQuery | 1.11.3
|
jQuery UI | 1.11.4
|
jQuery Timepicker | 1.5.5
|
Enabled Plugins
TracAccountManager | 0.4.4
|
Interface Customization
Python Traceback
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 613, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 253, 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)
Note: See
TracTickets for help on using
tickets.



Duplicate: