Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13030 closed defect (fixed)

AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Reported by: massimo.b@… Owned by: Ryan J Ollos
Priority: normal Component: WatchlistPlugin
Severity: normal Keywords:
Cc: gardarh@… Trac Release: 1.2

Description (last modified by Ryan J Ollos)

Updated to trac-1.2, AccountManagerPlugin r16171, WatchListPlugin r16171. This fixed bug #12715 but runs into this one:

 Trac detected an internal error:

AttributeError: 'Environment' object has no attribute 'get_db_cnx'


Python Traceback
Most recent call last:

File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 613, in _dispatch_request
  dispatcher.dispatch(req)
File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 263, in dispatch
  self._post_process_request(req, *resp)
File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 444, in _post_process_request
  resp = f.post_process_request(req, *resp[:-1])
File "build/bdist.linux-x86_64/egg/tracwatchlist/plugin.py", line 692, in post_process_request
  if self.is_watching(realm, resid, user):
File "build/bdist.linux-x86_64/egg/tracwatchlist/plugin.py", line 254, in is_watching
  db = db or self.env.get_db_cnx()

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 8 years ago by Ryan J Ollos

Owner: changed from Martin Scharrer to Ryan J Ollos
Status: newaccepted

comment:3 Changed 8 years ago by Ryan J Ollos

Cc: gardarh@… added

I'll review and commit the changes prepared in this branch.

comment:4 Changed 8 years ago by Ryan J Ollos

I implemented the changes pretty quickly and did minimal testing. Please report any issues to this ticket and I'll fix quickly.

comment:5 Changed 8 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16362:

3.0.0dev: Adapt to Trac 1.0 database API

Fixes #13030.

comment:6 Changed 8 years ago by Ryan J Ollos

See also #13122.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.