Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1079 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Toolbox doesn't work with quickstarted SQLAlchemy+identity-project

Reported by: joshua Owned by: elvelind
Priority: normal Milestone: 1.5
Component: Toolbox Version:
Severity: normal Keywords:


When starting the toolbox from a quickstarted project with identity+SQLAlchemy, the toolbox raises an exception:

Traceback (most recent call last):
  File "/sw/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 103, in _run
  File "/sw/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py", line 151, in applyFilters
  File "/Users/joshua/Library/Source/TurboGears/turbogears/visit/api.py", line 140, in before_main
    visit= _manager.visit_for_key( visit_key )
  File "/Users/joshua/Library/Source/TurboGears/turbogears/visit/sovisit.py", line 54, in visit_for_key
    visit= TG_Visit.lookup_visit( visit_key )
  File "/Users/joshua/Library/Source/TurboGears/turbogears/visit/sovisit.py", line 92, in lookup_visit
    return cls.by_visit_key( visit_key )
  File "<string>", line 1, in <lambda>
  File "/sw/lib/python2.4/site-packages/SQLObject-0.8dev_r1859-py2.4.egg/sqlobject/main.py", line 1290, in _SO_fetchAlternateID
    result, obj = cls._findAlternateID(name, dbName, value, connection)
  File "/sw/lib/python2.4/site-packages/SQLObject-0.8dev_r1859-py2.4.egg/sqlobject/main.py", line 1281, in _findAlternateID
    return (connection or cls._connection)._SO_selectOneAlt(
  File "/Users/joshua/Library/Source/TurboGears/turbogears/database.py", line 171, in __get__
  File "/Users/joshua/Library/Source/TurboGears/turbogears/database.py", line 189, in set_hub
    raise KeyError, "No database configuration found!"
KeyError: 'No database configuration found!'

Obviously it tries to use SQLObject's visit manager ("sovisit.py"). Possibly the toolbox ignores some configs?

Change History

comment:1 Changed 13 years ago by elvelind

  • Owner changed from anonymous to elvelind
  • Status changed from new to assigned

comment:2 Changed 13 years ago by elvelind

  • Status changed from assigned to closed
  • Resolution set to fixed

Should be fixed in 1892 now.

Note: See TracTickets for help on using tickets.