def __init__(self, params={}): gobject.GObject.__init__(self) self._buddies = {None: get_owner_instance()} self._activities = {} self._server_account = None self._nicks = {} # # Jabber params # self._nickname = params["nickname"] self._account_id = params["account_id"] self._server = params["server"] self._port = params["port"] self._password = params["password"] self._register = params["register"] bus = dbus.Bus() obj = bus.get_object(ACCOUNT_MANAGER_SERVICE, ACCOUNT_MANAGER_PATH) account_manager = dbus.Interface(obj, ACCOUNT_MANAGER) account_manager.Get(ACCOUNT_MANAGER, 'ValidAccounts', dbus_interface=PROPERTIES_IFACE, reply_handler=self.__got_accounts_cb, error_handler=self.__error_handler_cb)
def __init__(self, params={}): GObject.GObject.__init__(self) self._buddies = {None: get_owner_instance()} self._activities = {} self._server_account = None self._nicks = {} # # Jabber params # self._nickname = params["nickname"] self._account_id = params["account_id"] self._server = params["server"] self._port = params["port"] self._password = params["password"] self._register = params["register"] bus = dbus.Bus() obj = bus.get_object(ACCOUNT_MANAGER_SERVICE, ACCOUNT_MANAGER_PATH) account_manager = dbus.Interface(obj, ACCOUNT_MANAGER) account_manager.Get(ACCOUNT_MANAGER, 'ValidAccounts', dbus_interface=PROPERTIES_IFACE, reply_handler=self.__got_accounts_cb, error_handler=self.__error_handler_cb)