Ticket #10470: thread-safe-handlers_minimal-patch.diff
File thread-safe-handlers_minimal-patch.diff, 1.4 KB (added by , 16 years ago) |
---|
-
django/core/handlers/base.py
24 24 """ 25 25 from django.conf import settings 26 26 from django.core import exceptions 27 self._request_middleware = [] 27 28 # also serves as initialization guard 29 _request_middleware = [] 30 28 31 self._view_middleware = [] 29 32 self._response_middleware = [] 30 33 self._exception_middleware = [] … … 49 52 continue 50 53 51 54 if hasattr(mw_instance, 'process_request'): 52 self._request_middleware.append(mw_instance.process_request)55 _request_middleware.append(mw_instance.process_request) 53 56 if hasattr(mw_instance, 'process_view'): 54 57 self._view_middleware.append(mw_instance.process_view) 55 58 if hasattr(mw_instance, 'process_response'): … … 57 60 if hasattr(mw_instance, 'process_exception'): 58 61 self._exception_middleware.insert(0, mw_instance.process_exception) 59 62 63 self._request_middleware = _request_middleware 64 60 65 def get_response(self, request): 61 66 "Returns an HttpResponse object for the given HttpRequest" 62 67 from django.core import exceptions, urlresolvers