Skip to content
Snippets Groups Projects
Commit 1958870a authored by jkerdreu's avatar jkerdreu
Browse files

Summary: Drop old functions

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1959 b32b6428-25c9-4566-ad07-03861ab6144f
parent 1a1adf3f
Branches
No related tags found
No related merge requests found
......@@ -70,27 +70,6 @@ def new_cfg(app_name):
return cfg
"""
def get_cfg_addr(app_name):
cfg_file = get_cfg_file(app_name)
cfg = load_cfg_file(cfg_file)
if cfg is None:
cfg = new_cfg(cfg_file, app_name)
addr = cfg.get(app_name, 'xaaladdr')
return addr
def new_cfg(filename, app_name):
cfg = ConfigParser()
cfg.add_section(app_name)
cfg.set(app_name, 'xaaladdr', get_random_uuid())
f = open(filename, 'w')
cfg.write(f)
return cfg
"""
def get_random_uuid():
return str(uuid.uuid1())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment