Modify

Opened 7 years ago

Closed 7 years ago

#13274 closed defect (fixed)

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

Reported by: Jon Holstrom Owned by: Ryan J Ollos
Priority: normal Component: BacklogPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

How to Reproduce

While doing a GET operation on /backlog, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

System Information

Trac 1.2.2
FullBlog 0.1.6.3
Genshi 0.7 (with speedups)
mod_wsgi 4.3.0 (WSGIProcessGroup WSGIApplicationGroup 127.0.1.1|/trac/test)
Pygments 2.1
pysqlite 2.6.0
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
pytz 2014.10
RPC 1.1.7.dev0
setuptools 20.7.0
SQLite 3.11.0
Subversion 1.9.3 (r1718519)
jQuery 1.11.3
jQuery UI 1.11.4
jQuery Timepicker 1.5.5

Enabled Plugins

BacklogPlugin 0.2dev-r0
CodeExampleMacro 1.2.post0
ComponentHierarchy 1.2.0.dev0
ExtendedVersionPlugin 1.0dev-r0
GridModify 1.0.0.dev0
MultipleWorkflowPlugin 1.4.1
SimpleMultiProject 0.5.2.dev0
TimeTracking 1.2
TracAdvancedTicketWorkflow 1.2.1.dev0
TracAdvParseArgsPlugin 0.4
TracCiteCode 0.3.5
TracCodeReviewer 1.0.0.dev0
TracDownloads 1.0.0.dev0
TracFullBlogPlugin 0.1.6.3
TracIniAdminPanel 1.0.2
TracTags 0.10.dev0
Tracticketstats 3.0.0.dev0
TracUserManagerPlugin 1.2.0.dev0
TracWikiExtras 1.3.1.dev0
TracWorkflowAdmin 0.12.0.4
TracXMLRPC 1.1.7.dev0

Interface Customization

shared-htdocs
shared-templates
site-htdocs 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/backlog/web_ui.py", line 101, in process_request
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Ryan J Ollos

This is not a good plugin. Consider using MultiProjectBacklogPlugin or TracBacklogPlugin.

comment:2 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 16834:

BacklogPlugin 0.3dev: Make compatible with Trac 1.0+

Fixes #13274.

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.