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.

Reply via email to