예제 #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)