Ejemplo n.º 1
0
 def post(self, request, response):
     actual_post = lambda req, rep: self._post(req, rep)
     return AbstractCostMapBackend.post(self, request, response, actual_post)
Ejemplo n.º 2
0
 def get(self, request, response, actual_get = None):
     actual_get = lambda req, rep: self._data
     return AbstractCostMapBackend.get(self, request, response, actual_get)
Ejemplo n.º 3
0
 def __init__(self, config, costmap):
     AbstractCostMapBackend.__init__(self, config, True)
     self.costmap = costmap
Ejemplo n.º 4
0
 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