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 #534 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

notrans_mysql:// causes "NoneType object has no attribute 'cache'" traceback

Reported by: spleeman@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords: sqlobject database notrans mysql
Cc:

Description

When prepending a mysql dburi with notrans_, any database queries result in a traceback similar to the following:

Page handler: <bound method Root.index of <cameosd.controllers.Root
object at 0xb73d45ac>>
Traceback (most recent call last):
 File "/usr/local/lib/python2.4/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 98, in _run
   self.main()
 File "/usr/local/lib/python2.4/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 246, in main
   body = page_handler(*virtual_path, **self.params)
 File "<string>", line 3, in index
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/controllers.py",
line 184, in expose
   func, tg_format, html, fragment, *args, **kw)
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/database.py",
line 193, in run_with_transaction
   retval = func(*args, **kw)
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/controllers.py",
line 196, in _execute_func
   output = errorhandling.try_call(func, self, *args, **kw)
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/errorhandling.py",
line 64, in try_call
   output = dispatch_error(func, self, error, *args, **kw)
 File "<string>", line 5, in dispatch_error
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/errorhandling.py",
line 27, in _default_error_handler
   return getattr(self, error_source.__name__ )(*args, **kw)
 File "<string>", line 3, in index
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/controllers.py",
line 179, in expose
   output = _execute_func(self, func, tg_format, html, fragment,
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/controllers.py",
line 196, in _execute_func
   output = errorhandling.try_call(func, self, *args, **kw)
 File "/usr/local/lib/python2.4/TurboGears-0.9a0dev_r663-py2.4.egg/turbogears/errorhandling.py",
line 60, in try_call
   raise error
AttributeError: 'NoneType' object has no attribute 'cache'

Change History

comment:1 Changed 13 years ago by kevin

I wonder if [346] is related at all? Regardless, these would likely be done at the same time.

comment:2 Changed 13 years ago by kevin

make that #346...

comment:3 Changed 13 years ago by kevin

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

This should now be all set as of [819].

Note: See TracTickets for help on using tickets.