Ejemplo n.º 1
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     result = handler.process_clear_rereview()
     return Response({'score': result})
Ejemplo n.º 2
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     handler.process_clear_escalation()
     return Response()
Ejemplo n.º 3
0
 def _do_post(self, request, pk):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.data)
     return getattr(handler, "process_" + self.verb)()
Ejemplo n.º 4
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     result = handler.process_clear_rereview()
     return Response({'score': result})
Ejemplo n.º 5
0
 def delete(self, request, pk, *a, **kw):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.query_params)
     handler.process_clear_escalation()
     return Response()
Ejemplo n.º 6
0
 def _do_post(self, request, pk):
     app = self.get_object()
     handler = ReviewApp(request, app, app.latest_version, ())
     handler.set_data(request.data)
     return getattr(handler, "process_" + self.verb)()