def store_temp(self): if not os.path.exists(self.temp_path): os.makedirs(settings.RAM_DISK) storage = PickleStorage(str(self.temp_path + "/" + self.name + "_temp_vars"), gzipped=False) storage.store(self.temp_vars)
def load_temp(self): try: storage = PickleStorage(str(self.temp_path + "/" + self.name + "_temp_vars"), gzipped=False) self.temp_vars = storage.load() except IOError: self.temp_vars = dict()
def load_temp(self): try: storage = PickleStorage(str(self.temp_path+"/"+self.name+"_temp_vars"), gzipped=False) self.temp_vars = storage.load() except IOError: self.temp_vars = dict()
def store_temp(self): if not os.path.exists(self.temp_path): os.makedirs(settings.RAM_DISK) storage = PickleStorage(str(self.temp_path+"/"+self.name+"_temp_vars"), gzipped=False) storage.store(self.temp_vars)