(self, last)
Set the name of last xarchived segment.
Set the name of last xarchived segment.
Set the name of last xarchived segment .
def set_last_complete(self, last):
        """Set the name of last xarchived segment."""

        data_dir = self.cf.getfile("master_data")
        fn = os.path.join(data_dir, ".walshipping.last")
        fn_tmp = fn + ".new"
        try:
            f = open(fn_tmp, "w")
            f.write(last)
            f.close()
            os.rename(fn_tmp, fn)
        except:
            self.log.fatal("Cannot write to %s", fn)
def set_last_complete ( self , last ) : data_dir = self . cf . getfile ( "master_data" ) fn = os . path . join ( data_dir , ".walshipping.last" ) fn_tmp = fn + ".new" try : f = open ( fn_tmp , "w" ) f . write ( last ) f . close ( ) os . rename ( fn_tmp , fn ) except : self . log . fatal ( "Cannot write to %s" , fn )