Exemple #1
0
 def __init__(self, appdata, cnf={}):
     self.config = CDRZ_Config()
     config_file = os.path.join(appdata.app_config_dir, 'cdr_config.xml')
     self.config.load(config_file)
     self.config.update(cnf)
     self.appdata = appdata
     self.doc_id = id(self)
     self.loader = CDRZ_Loader()
     self.saver = CDRZ_Saver()
     self.create_cache_structure()
     self.new()