rename xml to tiram_obj

This commit is contained in:
Emmanuel Garette 2022-03-11 21:27:18 +01:00
parent dd7880a19e
commit ddf8caa9ca

View file

@ -344,8 +344,9 @@ async def build(server_name, datas, module_infos):
except Exception as err: except Exception as err:
print(f'Try to load {module_info.modules}') print(f'Try to load {module_info.modules}')
raise err from err raise err from err
xml = eolobj.save(None) tiram_obj = eolobj.save(None)
#print(xml) # if server_name == 'revprox.in.silique.fr':
# print(tiram_obj)
#cfg['patches_dir'] = join(test_dir, 'patches') #cfg['patches_dir'] = join(test_dir, 'patches')
cfg['tmp_dir'] = 'tmp' cfg['tmp_dir'] = 'tmp'
cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name) cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name)
@ -354,9 +355,9 @@ async def build(server_name, datas, module_infos):
makedirs('tmp') makedirs('tmp')
makedirs(cfg['destinations_dir']) makedirs(cfg['destinations_dir'])
try: try:
exec(xml, None, optiondescription) exec(tiram_obj, None, optiondescription)
except Exception as err: except Exception as err:
print(xml) print(tiram_obj)
raise Exception(f'unknown error when load tiramisu object {err}') from err raise Exception(f'unknown error when load tiramisu object {err}') from err
config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name) config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name)
await config.property.read_write() await config.property.read_write()