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
2 changed files with 79 additions and 48 deletions
|
|
@ -197,12 +197,16 @@ doc=Get real profile name from profile key
|
|||
doc_param_0=%(doc_profile_key)s
|
||||
doc_return=Real profile name
|
||||
|
||||
[getProfilesList]
|
||||
[profilesListGet]
|
||||
type=method
|
||||
category=core
|
||||
sig_in=
|
||||
sig_in=bb
|
||||
sig_out=as
|
||||
doc=Get all profiles
|
||||
param_0_default=True
|
||||
param_1_default=False
|
||||
doc_param_0=clients: get clients profiles
|
||||
doc_param_1=components: get components profiles
|
||||
doc=Get list of profiles
|
||||
|
||||
[profileSetDefault]
|
||||
type=method
|
||||
|
|
|
|||
|
|
@ -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