Exemple #1
0
 def post(self, request, response):
     actual_post = lambda req, rep: self._post(req, rep)
     return AbstractCostMapBackend.post(self, request, response, actual_post)
Exemple #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)
Exemple #3
0
 def __init__(self, config, costmap):
     AbstractCostMapBackend.__init__(self, config, True)
     self.costmap = costmap
Exemple #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