Hi, needed to start a new thread since I cannot reply to the old one anymore (http://groups.google.com/group/turbogears-trunk/browse_thread/ thread/865e2b334c8b77f0)
I've done some more work on the transaction stuff (http:// trac.turbogears.org/ticket/1065), and the latest patch (http:// trac.turbogears.org/attachment/ticket/1065/transactions-tg15-2.diff) seems to get closer to using repoze.tm2 (http://repoze.org/ tmdemo.html) as a cherrypy tool with TurboGears-1.5. This should give you TG-2.0 style transaction handling for TG-1.5. I've now managed to get zope.sqlalchemy working as well, and I'm also trying to have each SQLObject hub join the (zope) transaction. Also managed to restart transactions for exception_handlers(), so that changes within them are not rolled back. I find it quite hard to work on this stuff, so there are probably some bugs or other things that could be improved. Especially since I'm not that used to SA. It also passes most of the tests, but fails with test_run_with_trans since that database.run_with_transaction will never be called anymore. I will try to write some more specific tests, test_doom() etc. Suggestions and comments on how to proceed with this stuff are welcome. To enable the transaction tool you need to add to your config: tools.transactions.on = True app config: [/path_to_controller] tools. transactions = True or for a controller: @expose() def test(self): return "Success" test._cp_config = { "tools.transactions.on" : True } or for a controller root: class Root(controllers.RootController): _cp_config = { "tools.transactions.on" : True } You can enable/disable transactions for both turbogears exposed and cherrypy exposed methods -- Dag --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
