Mercurial > libervia-backend
comparison sat_frontends/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 | 003b8b4b56a7 |
children | ab2696e34d29 |
comparison
equal
deleted
inserted
replaced
2891:6a0f42e9410a | 2892:82b781c46841 |
---|---|
724 kwargs['timeout'] = const_TIMEOUT | 724 kwargs['timeout'] = const_TIMEOUT |
725 kwargs['reply_handler'] = callback | 725 kwargs['reply_handler'] = callback |
726 kwargs['error_handler'] = error_handler | 726 kwargs['error_handler'] = error_handler |
727 return self.db_core_iface.progressGetAllMetadata(profile, **kwargs) | 727 return self.db_core_iface.progressGetAllMetadata(profile, **kwargs) |
728 | 728 |
729 def rosterResync(self, profile_key="@DEFAULT@", callback=None, errback=None): | |
730 if callback is None: | |
731 error_handler = None | |
732 else: | |
733 if errback is None: | |
734 errback = log.error | |
735 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | |
736 return self.db_core_iface.rosterResync(profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) | |
737 | |
729 def saveParamsTemplate(self, filename, callback=None, errback=None): | 738 def saveParamsTemplate(self, filename, callback=None, errback=None): |
730 if callback is None: | 739 if callback is None: |
731 error_handler = None | 740 error_handler = None |
732 else: | 741 else: |
733 if errback is None: | 742 if errback is None: |