def __init__(self, config, networkmaps=set(), costmap=None, urls={}): if (networkmaps is None) or (len(networkmaps) == 0): raise Exception("Missing dependency: ECSLite requires network maps") if costmap is None: raise Exception("Missing dependency: ECSLite requires cost maps") AbstractEndpointCostMapBackend.__init__(self, config) self.networkmaps = networkmaps self.costmap = costmap self.urls = urls
def post(self, request, response): actual_post = lambda req, rep: self._post(req, rep) return AbstractEndpointCostMapBackend.post(self, request, response, actual_post)