Ejemplo n.º 1
0
 def __call__(self, request, slug):
     self.slug = slug
     try:
         return SearchView.__call__(self, request)
     except PermissionDenied:
         if request.user.is_authenticated():
             raise
         path = request.build_absolute_uri()
         return redirect_to_login(path)
Ejemplo n.º 2
0
 def __call__(self, request, slug):
     self.slug = slug
     try:
         return SearchView.__call__(self, request)
     except PermissionDenied:
         if request.user.is_authenticated():
             raise
         path = request.build_absolute_uri()
         return redirect_to_login(path)
Ejemplo n.º 3
0
 def __call__(self, request, slug):
     self.slug = slug
     return SearchView.__call__(self, request)
Ejemplo n.º 4
0
 def __call__(self, request, slug):
     self.slug = slug
     return SearchView.__call__(self, request)
Ejemplo n.º 5
0
 def __call__(self, request):
     language = get_language_from_request(request)
     self.searchqueryset = SearchQuerySet().filter(language=language)
     return BaseView.__call__(self, request)