core, frontends: getProfilesList renamed to profilesGetList + behaviour change:
- profilesGetList now handles clients and components boolean arguments, to filter profiles
- jp: added --clients and --components options to profile/list
- profilesGetList now returns sorted profiles
This commit is contained in:
parent
ac7d587c49
commit
85f3bd5988
1 changed files with 79 additions and 48 deletions
|
|
@ -323,12 +323,6 @@ class DbusObject(dbus.service.Object):
|
|||
def getProfileName(self, profile_key="@DEFAULT@"):
|
||||
return self._callback("getProfileName", unicode(profile_key))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='', out_signature='as',
|
||||
async_callbacks=None)
|
||||
def getProfilesList(self, ):
|
||||
return self._callback("getProfilesList", )
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='', out_signature='',
|
||||
async_callbacks=('callback', 'errback'))
|
||||
|
|
@ -425,6 +419,12 @@ class DbusObject(dbus.service.Object):
|
|||
def profileStartSession(self, password='', profile_key="@DEFAULT@", callback=None, errback=None):
|
||||
return self._callback("profileStartSession", unicode(password), unicode(profile_key), callback=callback, errback=errback)
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='bb', out_signature='as',
|
||||
async_callbacks=None)
|
||||
def profilesListGet(self, clients=True, components=False):
|
||||
return self._callback("profilesListGet", clients, components)
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='ss', out_signature='a{ss}',
|
||||
async_callbacks=None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue