def __init__(self, bus, name, _dct=None): if _dct is None: dct = {} else: dct = _dct opts.__init__(self, dct) log.__init__(self, bus, True) Thread.__init__(self) self.setName(name) self.__generator_queue = [] self.__delay_queue = Queue() self.__func_acl = [] self.__shutdown = False self.public = {} self.generators = [] for i in dir(self): x = getattr(self, i) try: if x.rpc_public: if hasattr(x, "rpc_alias"): self.public[x.rpc_alias] = x else: self.public[i] = x except: pass try: if x.rpc_tail: self.generators.append(i) except: pass
def __init__(self,bus,name, _dct=None): if _dct is None: dct = {} else: dct = _dct opts.__init__(self,dct) log.__init__(self,bus,True) Thread.__init__(self) self.setName(name) self.__generator_queue = [] self.__delay_queue = Queue() self.__func_acl = [] self.__shutdown = False self.public = {} self.generators = [] for i in dir(self): x = getattr(self,i) try: if x.rpc_public: if hasattr(x,"rpc_alias"): self.public[x.rpc_alias] = x else: self.public[i] = x except: pass try: if x.rpc_tail: self.generators.append(i) except: pass
def __init__(self, bus, addr, flags=0, disconnect=False): log.__init__(self, bus, disconnect) self.addr = addr self.flags = flags
def __init__(self,bus,addr,flags=0,disconnect=False): log.__init__(self,bus,disconnect) self.addr = addr self.flags = flags