class RSpecManager(RSpecManagerBase): def __init__(self): self.__crafter = CrafterManager() self.__parser = ParserManager() def compose_advertisement(self, resources): return self.__crafter.get_advertisement(resources) def compose_manifest(self, slivers): return self.__crafter.manifest_slivers(slivers) def parse_request(self, request_rspec): return self.__parser.parse_request_rspec(request_rspec)
class RSpecManager(RSpecManagerBase): def __init__(self): self.__crafter = CrafterManager() self.__parser = ParserManager() def compose_advertisement(self, resources): import logging logger = logging.getLogger("ZabbixHelper") logger.debug("compose_advertisement start") return self.__crafter.get_advertisement(resources) def compose_manifest(self, slivers): return self.__crafter.manifest_slivers(slivers) def parse_request(self, request_rspec): return self.__parser.parse_request_rspec(request_rspec)
def __init__(self): self.__crafter = CrafterManager() self.__parser = ParserManager()