Resubmit on error middleware

2012-08-03 Thread Paul Pietkiewicz
Hello All,

Is it possible to have a process_exception on handling an exception resubmit 
the request, instead of either returning a HttpResponse or None back to the 
user? Is there a clean way to redirect the response back to the view?

Thanks,
Paul

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



Re: [] Resubmit on error middleware

2012-08-03 Thread Paul Pietkiewicz
I've written my own middleware class with a process_exception method to 
capture the exception, and remedy the underlining condition which caused 
the exception. The point is to transparently resubmit the request without 
actually returning anything to the client. Basically to retry the entire 
request and return the result to the user without notifying the user of the 
retry. Is that possible?

Regards,
Paul

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