Does transaction manager commit sqlalchemy session? Really? I like the idea still..
-- Gopalakrishnan Subramani On May 20, 8:04 am, Michael Merickel <[email protected]> wrote: > Assuming "transaction.close" is a typo and you meant "transaction.commit", > you may want to think about not calling it at all and allowing the > transaction manager (repoze.tm2 or pyramid_tm) handle performing the commit > for you. The reason for this is that your changes will automatically be > rolled back if your request fails after you would have normally done a > commit. For example in your template renderer, where you have little control > as your view callable is already complete by the time that happens. -- 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.
