def __init__(self, appdata, cnf={}): self.config = CDR_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.loader = CDR_Loader() self.saver = CDR_Saver() self.new()