def sync(self, importer, state=None, log=None, max_changes=None, associated=False, window=None, begin=None, end=None, stats=None): """ Perform synchronization against folder :param importer: importer instance with callbacks to process changes :param state: start from this state; if not given sync from scratch :log: logger instance to receive important warnings/errors """ if state is None: state = _hex(8 * b'\0') importer.store = self.store return _ics.sync(self.store.server, self.mapiobj, importer, state, log, max_changes, associated, window=window, begin=begin, end=end, stats=stats)
def sync(self, importer, state, log=None, max_changes=None, window=None, begin=None, end=None, stats=None): """Perform synchronization against server node. :param importer: importer instance with callbacks to process changes :param state: start from this state (has to be given) :log: logger instance to receive important warnings/errors """ importer.store = None return _ics.sync(self, self.mapistore, importer, state, max_changes, window=window, begin=begin, end=end, stats=stats)