author Sylvain Thénault <>
Thu, 12 Oct 2017 09:39:54 +0200
changeset 2758 a9d8ac0426d6
parent 2388 b8fc498d0227
child 2834 149c09c5aae8
permissions -rw-r--r--
[hooks] Add hook to synchronize file_category with mime_type / format_id Upon modification of file_category relation, synchronize mime_type / format_id values for the binary data-object, through intermediary SEDAMimeType / SEDAFormatId entities which are kept for now but could be removed if the automatic user cardinality system is validated by business people. Synchronization is implemented to consider textual values of concept in the category vocabulary, and to keep only those which have a match in the vocabularies that are set on the transfer (code list version). Because of that, don't attempt to synchronize values on archive unit component, that should be done when it is imported into a transfer. Related to #36331831

recursive-include cubicweb_seda *.py
recursive-include cubicweb_seda/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_seda/xsd *.xsd
recursive-include doc *.rst *.py
recursive-include test *.py
include cubicweb_seda/migration/data/*.csv
include cubicweb_seda/i18n/*.po cubicweb_seda/i18n/*.pot
include test/data/bootstrap_cubes test/data/*.xml test/data/*.xsd test/data/*.rng test/data/*.csv
include tox.ini dev-requirements.txt cubicweb_seda/makefile

prune cubicweb-seda.spec
prune debian