def save(self, metalist): """ Dumps given metalist as pickle file """ uid = str(uuid.uuid4()) metalist_path = os.path.join(self.__pickle_path, times.get_sys_time() + '_' + uid + '.pickle') with open(metalist_path, 'wb') as file_desc: pickle.dump(metalist, file_desc)
def __init__(self, path): self.__mdlist = [] self.__path = path self.__commitTime = times.get_sys_time() self.__filtersys = filter.FilterSystem()