def __init__(self): global dmb_servers # dmb_servers = dmb_service().getServers() self.xmpp_client = dmb_xmpp.dmb_bot_client(config.bot_jid, config.bot_passwd, messageFunc = self.commandHandler, presenceFunc = self.presenceHandler, s2sFunc = self.s2sHandler) self.dmb = dmb_service() dmb_servers = self.dmb.getServers() self.threads = [] for i in xrange(config.threads_count): self.threads.append(inputThread(self.xmpp_client)) self.threads[-1].start() self.threads.append(outputThread(self.xmpp_client)) self.threads[-1].start()
def __init__(self): global dmb_servers # dmb_servers = dmb_service().getServers() self.xmpp_client = dmb_xmpp.dmb_bot_client( config.bot_jid, config.bot_passwd, messageFunc=self.commandHandler, presenceFunc=self.presenceHandler, s2sFunc=self.s2sHandler) self.dmb = dmb_service() dmb_servers = self.dmb.getServers() self.threads = [] for i in xrange(config.threads_count): self.threads.append(inputThread(self.xmpp_client)) self.threads[-1].start() self.threads.append(outputThread(self.xmpp_client)) self.threads[-1].start()
def __init__(self, ui): threading.Thread.__init__(self) self.ui = ui self.dmb = dmb_service()
def __init__(self, ui): threading.Thread.__init__(self) self.ui = ui self.dmb = dmb_service()