예제 #1
0
    def __init__(self, items, switch_programs_file=None):
        Proxy.__init__(self, items)
        Switch.__init__(self)

        with open(switch_programs_file) as data_file:
            self.switch_programs = json.load(data_file)

        for switch in self.items:
            self.items[switch].set_forward(self)
예제 #2
0
 def __init__(self, items):
     Proxy.__init__(self, items)
     Writer.__init__(self)