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