comparison sat_frontends/bridge/pb.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 003b8b4b56a7
children ab2696e34d29
comparison
equal deleted inserted replaced
2891:6a0f42e9410a 2892:82b781c46841
524 d.addCallback(callback) 524 d.addCallback(callback)
525 if errback is None: 525 if errback is None:
526 errback = self._generic_errback 526 errback = self._generic_errback
527 d.addErrback(errback) 527 d.addErrback(errback)
528 528
529 def rosterResync(self, profile_key="@DEFAULT@", callback=None, errback=None):
530 d = self.root.callRemote("rosterResync", profile_key)
531 if callback is not None:
532 d.addCallback(lambda __: callback())
533 if errback is None:
534 errback = self._generic_errback
535 d.addErrback(errback)
536
529 def saveParamsTemplate(self, filename, callback=None, errback=None): 537 def saveParamsTemplate(self, filename, callback=None, errback=None):
530 d = self.root.callRemote("saveParamsTemplate", filename) 538 d = self.root.callRemote("saveParamsTemplate", filename)
531 if callback is not None: 539 if callback is not None:
532 d.addCallback(callback) 540 d.addCallback(callback)
533 if errback is None: 541 if errback is None: