bridge(D-Bus): minotr argument name fix

This commit is contained in:
Goffi 2016-10-02 15:51:42 +02:00
commit 001834b760
2 changed files with 4 additions and 4 deletions

View file

@ -563,7 +563,7 @@ class DBusBridgeFrontend(BridgeFrontend):
kwargs['error_handler'] = error_handler
return self.db_core_iface.profileIsSessionStarted(profile_key, **kwargs)
def profileSetDefault(self, arg_0, callback=None, errback=None):
def profileSetDefault(self, profile, callback=None, errback=None):
if callback is None:
error_handler = None
else:
@ -575,7 +575,7 @@ class DBusBridgeFrontend(BridgeFrontend):
kwargs['timeout'] = const_TIMEOUT
kwargs['reply_handler'] = callback
kwargs['error_handler'] = error_handler
return self.db_core_iface.profileSetDefault(arg_0, **kwargs)
return self.db_core_iface.profileSetDefault(profile, **kwargs)
def profileStartSession(self, password='', profile_key="@DEFAULT@", callback=None, errback=None):
if callback is None:

View file

@ -411,8 +411,8 @@ class DbusObject(dbus.service.Object):
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='s', out_signature='',
async_callbacks=None)
def profileSetDefault(self, arg_0):
return self._callback("profileSetDefault", unicode(arg_0))
def profileSetDefault(self, profile):
return self._callback("profileSetDefault", unicode(profile))
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='ss', out_signature='b',