Agreed, I haven''t noticed any session wierdnessin any of my naive bfg implementations either.
On Thu, Apr 29, 2010 at 10:20 AM, Laurence Rowe <l...@lrowe.co.uk> wrote: > Hi, > > I'm trying to work out why the following code is in the bfg_alchemy > template > (http://repoze.org/viewcvs/repoze.bfg/trunk/repoze/bfg/paster_templates/alchemy): > > <subscriber for="repoze.bfg.interfaces.INewRequest" > handler=".run.handle_teardown" > /> > > def handle_teardown(event): > environ = event.request.environ > if isActive(environ): > t = transaction.get() > after_end.register(DBSession.remove, t) > > As far as I know this is unnecessary. It's not in the repoze.cluegun > app, nor in the app I worked on at Jarn. Are there any problems when > you remove it? > > Laurence > _______________________________________________ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > -- Thomas G. Willis _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev