Laurence Rowe wrote:
> On Apr 28, 4:38 pm, Chris Withers <ch...@simplistix.co.uk> wrote:
>> Laurence Rowe wrote:
>>> Chris,
>>> This is what the combination of repoze.tm2/transaction and
>>> zope.sqlalchemy does for you. You don't have to do anything special
>>> other than that.
>> It doesn't do the .remove().
>> BFG currently has a bit of horribleness to make that work.
>> I'd like to get rid of it or make it less horrible...
> 
> Can you point me at where it does that please.

http://svn.repoze.org/repoze.bfg/trunk/repoze/bfg/paster_templates/routesalchemy/+package+/run.py_tmpl

...the handle_teardown function.

I no longer believe this is necessary, pending absolute confirmation 
from Michael in the "Re: [sqlalchemy] session lifecycle and wsgi" thread.

It's certainly not necessary to do the close() *and* the remove() ;-)

cheers,

Chris

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to