diff src/bridge/dbus_bridge.py @ 2146:1bb9bf1b4150

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
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 19:08:52 +0100
parents 1d3f73e065e1
children 91347fe95384
line wrap: on
line diff
--- a/src/bridge/dbus_bridge.py	Sun Feb 12 18:59:10 2017 +0100
+++ b/src/bridge/dbus_bridge.py	Sun Feb 12 19:08:52 2017 +0100
@@ -324,12 +324,6 @@
         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'))
     def getReady(self, callback=None, errback=None):
@@ -426,6 +420,12 @@
         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)
     def progressGet(self, id, profile):