diff sat/bridge/dbus_bridge.py @ 2892:82b781c46841

core: added a rosterResync method to bridge: rosterResync do a full resynchronisation of roster with server. This should not be needed, but may be useful if user suspect a sync issue for whatever reason.
author Goffi <goffi@goffi.org>
date Sun, 07 Apr 2019 18:49:41 +0200
parents eb9fa72eb62b
children c7c52c0dc13a
line wrap: on
line diff
--- a/sat/bridge/dbus_bridge.py	Sun Apr 07 18:47:17 2019 +0200
+++ b/sat/bridge/dbus_bridge.py	Sun Apr 07 18:49:41 2019 +0200
@@ -511,6 +511,12 @@
         return self._callback("progressGetAllMetadata", unicode(profile))
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
+                         in_signature='s', out_signature='',
+                         async_callbacks=('callback', 'errback'))
+    def rosterResync(self, profile_key="@DEFAULT@", callback=None, errback=None):
+        return self._callback("rosterResync", unicode(profile_key), callback=callback, errback=errback)
+
+    @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='s', out_signature='b',
                          async_callbacks=None)
     def saveParamsTemplate(self, filename):