Ejemplo n.º 1
0
 def _close_search_context(self, request):
     """Closes the search context."""
     if request.META.get((WATSON_MIDDLEWARE_FLAG, self), False):
         del request.META[(WATSON_MIDDLEWARE_FLAG, self)]
         search_context_manager.end()
Ejemplo n.º 2
0
 def _close_search_context(self, request):
     """Closes the search context."""
     if request.META.get((WATSON_MIDDLEWARE_FLAG, self), False):
         del request.META[(WATSON_MIDDLEWARE_FLAG, self)]
         search_context_manager.end()
Ejemplo n.º 3
0
 def _close_search_context(self, request):
     """Closes the search context."""
     if WATSON_MIDDLEWARE_FLAG in request.META:
         del request.META[WATSON_MIDDLEWARE_FLAG]
         search_context_manager.end()