Mercurial > libervia-backend
diff frontends/src/bridge/dbus_bridge.py @ 2168:255830fdb80b
core, bridge: renamed getProfileName to profileNameGet according to new conventions
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 05 Mar 2017 21:36:01 +0100 |
parents | 4b78b4c7f805 |
children | f047d5410040 |
line wrap: on
line diff
--- a/frontends/src/bridge/dbus_bridge.py Sun Feb 26 18:23:01 2017 +0100 +++ b/frontends/src/bridge/dbus_bridge.py Sun Mar 05 21:36:01 2017 +0100 @@ -375,20 +375,6 @@ kwargs['error_handler'] = error_handler return self.db_core_iface.getPresenceStatuses(profile_key, **kwargs) - def getProfileName(self, profile_key="@DEFAULT@", callback=None, errback=None): - if callback is None: - error_handler = None - else: - if errback is None: - errback = log.error - error_handler = lambda err:errback(dbus_to_bridge_exception(err)) - kwargs={} - if callback is not None: - kwargs['timeout'] = const_TIMEOUT - kwargs['reply_handler'] = callback - kwargs['error_handler'] = error_handler - return unicode(self.db_core_iface.getProfileName(profile_key, **kwargs)) - def getReady(self, callback=None, errback=None): if callback is None: error_handler = None @@ -555,6 +541,20 @@ kwargs['error_handler'] = error_handler return self.db_core_iface.profileIsSessionStarted(profile_key, **kwargs) + def profileNameGet(self, profile_key="@DEFAULT@", callback=None, errback=None): + if callback is None: + error_handler = None + else: + if errback is None: + errback = log.error + error_handler = lambda err:errback(dbus_to_bridge_exception(err)) + kwargs={} + if callback is not None: + kwargs['timeout'] = const_TIMEOUT + kwargs['reply_handler'] = callback + kwargs['error_handler'] = error_handler + return unicode(self.db_core_iface.profileNameGet(profile_key, **kwargs)) + def profileSetDefault(self, profile, callback=None, errback=None): if callback is None: error_handler = None