Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8572 closed defect (fixed)

AttributeError: 'sqlite3.Connection' object has no attribute 'get_db_cnx'

Reported by: osvaldo Owned by: Remy Blank
Priority: normal Milestone: 0.12-multirepos
Component: version control Version:
Severity: normal Keywords: multirepos api documentation
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

User Agent was: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090716 Ubuntu/9.04 (jaunty) Shiretoko/3.5.1

System Information

Trac 0.12multirepos-r8468
Python 2.5.2 (r252:60911, Jul 22 2009, 15:52:25)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
setuptools 0.6c9
SQLite 3.4.2
pysqlite 2.3.2
Genshi 0.6dev-r1064
Babel -
mod_python 3.3.1
GIT 1.5.6.1
RPC 1.0.6
jQuery: 1.3.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/web/main.py", line 467, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/web/main.py", line 181, in dispatch
    chosen_handler)
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/web/main.py", line 317, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/versioncontrol/api.py", line 330, in pre_process_request
    repo.sync()
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/versioncontrol/cache.py", line 127, in sync
    db = self.env.get_db_cnx()
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/db/util.py", line 93, in __getattr__
    return getattr(self.cnx, name)
  File "/usr/lib/python2.5/site-packages/Trac-0.12multirepos_r8468-py2.5.egg/trac/db/util.py", line 93, in __getattr__
    return getattr(self.cnx, name)
AttributeError: 'sqlite3.Connection' object has no attribute 'get_db_cnx'

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 15 years ago

Component: generalversion control
Keywords: api documentation added
Milestone: 0.12-multirepos

Must be an issue with the Git plugin: see for example source:sandbox/multirepos/trac/versioncontrol/svn_fs.py@8490#L288, the get_repository of a connector should create the CachedRepository passing an !Environment as the first argument.

We should document this in TracDev/ApiChanges/0.12.

comment:2 by Remy Blank, 15 years ago

Keywords: multirepos added
Owner: set to Remy Blank

I'll update the documentation.

comment:3 by Remy Blank, 15 years ago

Resolution: fixed
Status: newclosed

Documentation updated in TracDev/ApiChanges/0.12@9.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.