On 3/15/06, Jeff Watkins <[EMAIL PROTECTED]> wrote: > Ben Bangert wrote: > > If you're just hooking up the engine at run-time, the EngineProxy does > > just that. How is using JustInTimeConnectEngine any different than using > > EngineProxy and setting the current engine during the request? > > Because making certain every single controller method begins with: > > some_global_engine.connect( cherrypy.config.get( "some_valid_config_key" ) ) > > gets old VERY fast.
Could that be done in run_with_transaction or equivalent? (I must confess ignorance as I have not had a chance to personally play with SQLAlchemy in a TurboGears context) Kevin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users