예제 #1
0
 def dispatch(self, request, requestion_id, *args, **kwargs):
     requestion = get_object_or_404(Requestion, id=requestion_id)
     if not isinstance(request, FakeWSGIRequest):
         if requestion.is_fake_identity_documents:
             return HttpResponseRedirect(
                 u'%s?next=%s' %
                 (reverse('operator_requestion_set_identity_document',
                     kwargs={'requestion_id': requestion_id}),
                     urlquote(request.get_full_path()))
                 )
     return RequirePermissionsMixin.dispatch(self, request, *args,
         requestion=requestion, **kwargs)
예제 #2
0
 def dispatch(self, request, requestion_id):
     requestion = get_object_or_404(Requestion, id=requestion_id)
     return RequirePermissionsMixin.dispatch(self, request,
         requestion=requestion)
예제 #3
0
 def dispatch(self, request):
     redirect_to = request.REQUEST.get('next', '')
     redirect_to = check_url(redirect_to, reverse('supervisor_frontpage'))
     return RequirePermissionsMixin.dispatch(self, request,
                                             redirect_to=redirect_to)
예제 #4
0
 def dispatch(self, request):
     redirect_to = request.GET.get("next") or request.POST.get("next", "")
     redirect_to = check_url(redirect_to, reverse("supervisor_frontpage"))
     return RequirePermissionsMixin.dispatch(self, request, redirect_to=redirect_to)