i have a small tg app with only 1 table using CRUD. After destroying a record, i get KeyError: 'pop(): dictionary is empty'.
TurboGears-1.0.4.3 CherryPy-2.3.0 I'm working with SQLObject, so it's strange to touch /var/lib/python-support/python2.4/sqlalchemy/orm/scoping.py (see stacktrace below) any clue? Thanks - kx "GET /foo/list HTTP/1.1" 200 5083 "" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)" - kx "GET /foo/new HTTP/1.1" 200 3816 "http://localhost:8081/foo/list" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)" None - kx "POST /foo/save HTTP/1.1" 302 113 "http://localhost:8081/foo/new" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)" - kx "GET /foo/list HTTP/1.1" 200 6056 "http://localhost:8081/foo/new" "Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.11) Gecko/20071128 Iceweasel/2.0.0.11 (Debian-2.0.0.11-1)" 2008-02-20 09:55:21,133 cherrypy.msg INFO HTTP: Page handler: <function _wrapper at 0x885aa04> Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/_cphttptools.py", line 121, in _run self.main() File "/usr/lib/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/_cphttptools.py", line 264, in main body = page_handler(*virtual_path, **self.params) File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/identity/conditions.py", line 288, in _wrapper return fn(*args, **kw) File "<string>", line 3, in destroy File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/controllers.py", line 361, in expose output = database.run_with_transaction( File "<string>", line 5, in run_with_transaction File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/database.py", line 356, in so_rwt retval = func(*args, **kw) File "<string>", line 5, in _expose File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/controllers.py", line 378, in <lambda> mapping, fragment, args, kw))) File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/controllers.py", line 405, in _execute_func output = errorhandling.try_call(func, *args, **kw) File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/errorhandling.py", line 72, in try_call return func(self, *args, **kw) File "/home/klaus/graues_kloster/termine/termin-pro/terminpro/TerminController/controllers.py", line 109, in destroy session.delete(record) File "/var/lib/python-support/python2.4/sqlalchemy/orm/scoping.py", line 98, in do return getattr(self.registry(), name)(*args, **kwargs) File "/var/lib/python-support/python2.4/sqlalchemy/util.py", line 938, in __call__ return self.registry.setdefault(key, self.createfunc()) File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/database.py", line 54, in create_session get_engine() File "/usr/lib/python2.4/site-packages/TurboGears-1.0.4.3-py2.4.egg/turbogears/database.py", line 43, in get_engine dburi = alch_args.pop('dburi') KeyError: 'pop(): dictionary is empty' -- View this message in context: http://www.nabble.com/KeyError%3A-%27pop%28%29%3A-dictionary-is-empty%27-after-destroy-tp15585100p15585100.html Sent from the Turbogears General mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

