modifications to have relative src for media in the xml ldt of a project.
- Migration in order to set all the project ldt with the new values in the xml. If the media has a content that doesn't exist, the media is erased. If the project has no valid media, the project is deleted. There is a test in project_tests.
- The migration uses the command : set_projectldtiri
- The command set_projectldtiri uses the function in utils relative_src_xml that returns an xml. The command deletes the projects that have no ldt or the ldt isn't valid (empty string)
- Modifications in lignesdetemps to have absolute urls in the xml when we open a project or in the research when we display the results in lignes de temps
import platform
from lib_create_env import lib_generate_install_methods
system_str = platform.system()
INSTALLS = [#(key,method, option_str, dict_extra_env)
]
OPTIONS_TO_ADD = ['clear', 'type_install=local', "unzip-setuptools", "use_distribute"]
def generate_install_methods(path_locations, src_base, Logger, call_subprocess):
return lib_generate_install_methods(path_locations, src_base, Logger, call_subprocess, INSTALLS, OPTIONS_TO_ADD)