def doRequestFilesAllSuppliers(self, *args, **kwargs): """ Action method. """ if self.ping_required: self.ping_required = False propagate.ping_suppliers().addBoth(self._do_request) else: self._do_request()
def doSuppliersRequestIndexFile(self, *args, **kwargs): """ Action method. """ if _Debug: lg.out(_DebugLevel, 'index_synchronizer.doSuppliersRequestIndexFile') if driver.is_on('service_backups'): from storage import backup_control self.current_local_revision = backup_control.revision() else: self.current_local_revision = -1 self.latest_supplier_revision = -1 self.requesting_suppliers.clear() self.requested_suppliers_number = 0 self.requests_packets_sent = [] if self.ping_required: propagate.ping_suppliers().addBoth(self._do_retrieve) self.ping_required = False else: self._do_retrieve()