class RIFF_Presenter(BinaryModelPresenter): cid = uc2const.RIFF config = None doc_file = '' model = None def __init__(self, appdata, cnf={}): self.config = RIFF_Config() config_file = os.path.join(appdata.app_config_dir, self.config.filename) self.config.load(config_file) self.config.update(cnf) self.appdata = appdata self.loader = RIFF_Loader() self.saver = RIFF_Saver() self.new() def new(self): self.model = model.RiffRootList() self.model.childs = [] def traslate_from_pdxf(self, pdxf_doc): pass def traslate_to_pdxf(self, pdxf_doc): pass
def __init__(self, appdata, cnf={}): self.config = RIFF_Config() config_file = os.path.join(appdata.app_config_dir, 'riff_config.xml') self.config.load(config_file) self.config.update(cnf) self.appdata = appdata self.loader = RIFF_Loader() self.saver = RIFF_Saver() self.new()
def __init__(self, appdata, cnf={}): self.config = RIFF_Config() config_file = os.path.join(appdata.app_config_dir, self.config.filename) self.config.load(config_file) self.config.update(cnf) self.appdata = appdata self.loader = RIFF_Loader() self.saver = RIFF_Saver() self.new()