Пример #1
0
 def __call__(self, request):
     set_current_request(request)
     try:
         response = self.get_response(request)
     finally:
         set_current_request(None)
     return response
Пример #2
0
 def process_response(self, request, response):
     request.kb = None
     set_current_request(None)
     return response
Пример #3
0
 def process_request(self, request):
     set_current_request(request)
Пример #4
0
 def process_response(self, request, response):
     request.kb = None
     set_current_request(None)
     return response
Пример #5
0
 def process_request(self, request):
     set_current_request(request)