Commit 436b5a42 authored by Samuel GAIST's avatar Samuel GAIST

[utils][commands][install] Implement asset subset installation

This refactoring allows to give only a subset of
assets to install. This will allow to fully install
a single asset.

Note that dependencies must be correctly provided.
For example if Protocol Templates are to be installed
on an empty database, the dataformat must be listed
along i.e.:
django install --assets dataformats protocoltemplates
parent 0b0238dc
......@@ -126,7 +126,11 @@ class BackendUtilitiesMixin(object):
for contribution in ["system", "test"]:
install.install_contributions(
source_prefix, contribution, template_data, db_root_file_path
source_prefix=source_prefix,
project=contribution,
assets=list(install.ASSET_UPLOADER_MAP.keys()),
template_data=template_data,
db_root_file=db_root_file_path,
)
if not os.path.exists(settings.CACHE_ROOT):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment