def __init__(self, server_id, xmpp_prof): XMPPClient.__init__(self, server_id, xmpp_prof) self.im_acc = {} self.notify_dispatch = '{0}@{1}'.format(config.NOTIFYIN, config.MSG_SERVER) self.bus = dbus.SessionBus() self.obj = None self.purple = None self.connectPidginDBus() self.cb_init() self.map_im_accounts() self.frm = switchKeyValue(self.im_acc)
def __init__(self, server_id, xmpp_prof): XMPPClient.__init__(self, server_id, xmpp_prof) self.to = { 'ym': 'yahoo.{0}'.format(self.xmpp_prof['realm']) } self.frm = switchKeyValue(self.to) self.notify_dispatch = '{0}@{1}'.format(config.NOTIFYIN, config.MSG_SERVER)