[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] object has no attribute 'get_db_cnx' - /admin/accounts/users
From:       ivanelson <ivanelsonnunes () gmail ! com>
Date:       2017-02-20 14:07:44
Message-ID: 00ca4ced-602e-4efb-b700-9ece89629a21 () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

When I go to [1] "Admin" -> "Users", I get this:


> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *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 108, 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'*


*This occurred *after upgrading to version trac-1.2.

[1] http://mysite/admin/accounts/users

-- 
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To post to this group, send \
email to trac-users@googlegroups.com. Visit this group at \
https://groups.google.com/group/trac-users. For more options, visit \
https://groups.google.com/d/optout.


[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi,</div><div><br></div><div>When I go to [1] &quot;Admin&quot; \
-&gt; &quot;Users&quot;, I get this:</div><div><span \
style="font-family:monospace"><span style="color: rgb(0, 0, \
0);"><br></span></span></div><div><blockquote class="gmail_quote" style="margin: 0px \
0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font \
face="courier new, monospace"><b style="background-color: rgb(255, 242, 204);"><span \
style="color: rgb(0, 0, 0);">Traceback (most recent call last):<br> </span>   File \
&quot;build/bdist.linux-x86_64/egg/trac/web/main.py&quot;, line 613, in \
_dispatch_request<br>  dispatcher.dispatch(req)<br>
   File &quot;build/bdist.linux-x86_64/egg/trac/web/main.py&quot;, line 253, in \
dispatch<br>  resp = chosen_handler.process_request(req)<br>
   File &quot;build/bdist.linux-x86_64/egg/trac/admin/web_ui.py&quot;, line 108, in \
process_request<br>  provider.render_admin_panel(req, cat_id, panel_id, \
path_info)<br>  File &quot;build/bdist.linux-x86_64/egg/acct_mgr/admin.py&quot;, line \
204, in render_admin_panel<br>  return self._do_users(req)<br>
   File &quot;build/bdist.linux-x86_64/egg/acct_mgr/admin.py&quot;, line 449, in \
_do_users<br>  data[&#39;accounts&#39;] = fetch_user_data(env, req)<br>
   File &quot;build/bdist.linux-x86_64/egg/acct_mgr/admin.py&quot;, line 73, in \
fetch_user_data<br>  authenticated=None).iteritems():<br>
   File &quot;build/bdist.linux-x86_64/egg/acct_mgr/model.py&quot;, line 123, in \
get_user_attribute<br>  db = _get_db(env, db)<br>
   File &quot;build/bdist.linux-x86_64/egg/acct_mgr/model.py&quot;, line 292, in \
_get_db<br>  return db or env.get_db_cnx()<br>
AttributeError: &#39;Environment&#39; object has no attribute \
&#39;get_db_cnx&#39;</b></font></blockquote> </div><div><font face="courier new, \
monospace"><b><br></b></font></div><div><font face="courier new, monospace"><b>This \
occurred </b></font>after upgrading to version trac-1.2.</div><div><br></div><div>[1] \
http://mysite/admin/accounts/users</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:trac-users@googlegroups.com">trac-users@googlegroups.com</a>.<br /> \
Visit this group at <a \
href="https://groups.google.com/group/trac-users">https://groups.google.com/group/trac-users</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic