I think you mean you want to call .commit() and scoped_session.remove() yourself before returning from views. I think it is much better to have transactions handled automatically, but if you disagree then you should disuse the ZopeTransactionExtension() entirely and take repoze.tm2 out of the WSGI pipeline.
IIRC with ZopeTransactionExtension you can also use 'import transaction; transaction.abort()' to not commit after a request even when your view does not raise an exception. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
