コード例 #1
0
    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
コード例 #2
0
ファイル: manager.py プロジェクト: svinota/cx
	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
コード例 #3
0
 def __init__(self, bus, addr, flags=0, disconnect=False):
     log.__init__(self, bus, disconnect)
     self.addr = addr
     self.flags = flags
コード例 #4
0
ファイル: manager.py プロジェクト: svinota/cx
	def __init__(self,bus,addr,flags=0,disconnect=False):
		log.__init__(self,bus,disconnect)
		self.addr = addr
		self.flags = flags