[2.1.x] Removed obsolete BaseHandler attributes.
Unused sinced334f46b7a
. Backport of4e016d1372
from master
This commit is contained in:
parent
4302911386
commit
13cb9d05a0
|
@ -14,10 +14,8 @@ logger = logging.getLogger('django.request')
|
||||||
|
|
||||||
|
|
||||||
class BaseHandler:
|
class BaseHandler:
|
||||||
_request_middleware = None
|
|
||||||
_view_middleware = None
|
_view_middleware = None
|
||||||
_template_response_middleware = None
|
_template_response_middleware = None
|
||||||
_response_middleware = None
|
|
||||||
_exception_middleware = None
|
_exception_middleware = None
|
||||||
_middleware_chain = None
|
_middleware_chain = None
|
||||||
|
|
||||||
|
@ -27,10 +25,8 @@ class BaseHandler:
|
||||||
|
|
||||||
Must be called after the environment is fixed (see __call__ in subclasses).
|
Must be called after the environment is fixed (see __call__ in subclasses).
|
||||||
"""
|
"""
|
||||||
self._request_middleware = []
|
|
||||||
self._view_middleware = []
|
self._view_middleware = []
|
||||||
self._template_response_middleware = []
|
self._template_response_middleware = []
|
||||||
self._response_middleware = []
|
|
||||||
self._exception_middleware = []
|
self._exception_middleware = []
|
||||||
|
|
||||||
handler = convert_exception_to_response(self._get_response)
|
handler = convert_exception_to_response(self._get_response)
|
||||||
|
|
|
@ -17,7 +17,7 @@ class HandlerTests(SimpleTestCase):
|
||||||
|
|
||||||
def test_middleware_initialized(self):
|
def test_middleware_initialized(self):
|
||||||
handler = WSGIHandler()
|
handler = WSGIHandler()
|
||||||
self.assertIsNotNone(handler._request_middleware)
|
self.assertIsNotNone(handler._middleware_chain)
|
||||||
|
|
||||||
def test_bad_path_info(self):
|
def test_bad_path_info(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue