On Feb 17, 2011, at 8:33 AM, Silvio wrote:
> When using @transaction.commit_manually, one needs to ROLLBACK or
> COMMIT, otherwise the transaction handler will raise the
> TransactionManagementError error. That much is clear. But does this
> mean the *entire* view needs to be wrapped in a massive "try/except/
> else" block?

Essentially, yes.  You've diagnosed it exactly: If an exception escapes a view 
function with manual transaction management, and a transaction is left open, 
the exception that escaped will be discarded, and a TransactionManagementError 
exception thrown instead.

--
-- Christophe Pettus
   x...@thebuild.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to