(self)
return args, kwargs, options
extracts task args from a request
extracts task args from a request
extracts task args from a request
def get_task_args(self):
        "extracts task args from a request"
        try:
            options = json_decode(self.request.body)
        except (TypeError, ValueError):
            raise web.HTTPError(400)
        args = options.pop('args', [])
        kwargs = options.pop('kwargs', {})
        if not isinstance(args, (list, tuple)):
            raise web.HTTPError(400, 'task args must be a list or tuple')

        return args, kwargs, options
def get_task_args ( self ) : try : options = json_decode ( self . request . body ) except ( TypeError , ValueError ) : raise web . HTTPError ( 400 ) args = options . pop ( 'args' , [ ] ) kwargs = options . pop ( 'kwargs' , { } ) if not isinstance ( args , ( list , tuple ) ) : raise web . HTTPError ( 400 , 'task args must be a list or tuple' ) return args , kwargs , options