On Tue, Mar 5, 2013 at 3:13 PM, Aymeric Augustin <[email protected]> wrote: > In the mean time, I discovered that it's impossible to implement > TransactionMiddleware reliably as a middleware, because there's no guarantee > that process_response or process_exception will be called.
Perhaps this could be fixed. We could add another middleware method called process_finally or somesuch, that would be guaranteed to be called on every request after the other methods. It would take a request and response as arguments, and any return value would be ignored. If it raised an exception, the exception would be caught, logged, and otherwise ignored. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
