def post(self, request, response): actual_post = lambda req, rep: self._post(req, rep) return AbstractCostMapBackend.post(self, request, response, actual_post)
def get(self, request, response, actual_get = None): actual_get = lambda req, rep: self._data return AbstractCostMapBackend.get(self, request, response, actual_get)
def __init__(self, config, costmap): AbstractCostMapBackend.__init__(self, config, True) self.costmap = costmap
def __init__(self, config, global_config, rid, **args): meta, data = args.pop('meta'), args.pop('data') AbstractCostMapBackend.__init__(self, config) BasicIRDResource.__init__(self, rid, **meta) self._data = data