This topic was also discussed during the deprecation of 
TransactionMiddleware and the introduction of ATOMIC_REQUESTS. The existing 
middleware semantics can't guarantee that  __exit__ (during 
process_response) will get called no matter what, necessitating the setting 
that invokes BaseHandler.make_view_atomic. make_view_atomic implements 
basically what you're suggesting, for one specific case (DB/ORM code in the 
front controller, ick!).

I can't find the previous discussion, does anyone have a link?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ac2c22dd-258c-4e68-a63c-e947f229176b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to