response = middleware_method(request, callback, callback ...
https://pastebin.com/9JhRSVi717.02.2014 · RAW Paste Data. response = middleware_method (request, callback, callback_args, callback_kwargs) if response: break if response is None: wrapped_callback = self.make_view_atomic (callback) try: response = wrapped_callback (request, *callback_args, **callback_kwargs) ... except Exception as e: # If the view raised an exception, run it through ...
response = middleware_method(request, callback, callback_args ...
pastebin.com › 9JhRSVi7Feb 17, 2014 · response = middleware_method (request, callback, callback_args, callback_kwargs) if response: break if response is None: wrapped_callback = self.make_view_atomic (callback) try: response = wrapped_callback (request, *callback_args, **callback_kwargs) ... except Exception as e: # If the view raised an exception, run it through exception # middleware, and if the exception middleware returns a # response, use that.