From: Alberto Valverde <albe...@toscat.net>
Date: Mon, 16 Apr 2007 20:51:59 +0200
Local: Mon, Apr 16 2007 2:51 pm
Subject: Re: [TurboGears] Re: Help with implicit transactions
On Apr 16, 2007, at 6:53 PM, George Sakkis wrote: > On Apr 16, 12:18 pm, Alberto Valverde <albe...@toscat.net> wrote: >>> Is there any way I can force a COMMIT within an exposed method ? >> How are you obtaining the engine when you use SA's select? You should > I use: > from turbogears import database as db > How can I access the implicit transaction created by TG or its local variable inside database.sa_rwt. Perhaps it should be bound to cherrypy.request so you could do: connection = engine.connect() then connection.execute(table.select()) # or whatever as described in the mentioned link. Can you try this patch see if it Index: turbogears/database.py Alberto You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||