(self, str_snapshot, tag_changed = 1)
Set snapshot.
Set snapshot.
Set snapshot .
def change_snapshot(self, str_snapshot, tag_changed = 1):
        """Set snapshot."""
        if self.str_snapshot == str_snapshot:
            return
        self.log.debug("%s: change_snapshot to %s", self.name, str_snapshot)
        self.str_snapshot = str_snapshot
        if str_snapshot:
            self.from_snapshot = skytools.Snapshot(str_snapshot)
        else:
            self.from_snapshot = None

        if tag_changed:
            self.ok_batch_count = 0
            self.last_tick = None
            self.changed = 1
def change_snapshot ( self , str_snapshot , tag_changed = 1 ) : if self . str_snapshot == str_snapshot : return self . log . debug ( "%s: change_snapshot to %s" , self . name , str_snapshot ) self . str_snapshot = str_snapshot if str_snapshot : self . from_snapshot = skytools . Snapshot ( str_snapshot ) else : self . from_snapshot = None if tag_changed : self . ok_batch_count = 0 self . last_tick = None self . changed = 1