示例#1
0
 def dispatch(self, request, *args, **kwargs):
     command = request.POST.get("command")
     if command:
         return get_basket_command_dispatcher(request).handle(command)
     else:
         return get_basket_view()(request, *args, **kwargs)
示例#2
0
 def dispatch(self, request, *args, **kwargs):
     command = request.REQUEST.get("command")
     if command:
         return get_basket_command_dispatcher(request).handle(command)
     else:
         return get_basket_view()(request, *args, **kwargs)