cubicweb_seda/migration/0.8.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Mar 2017 10:21:01 +0100
changeset 2401 317b5c7b3d49
parent 2400 83e093bfa6b9
child 2402 ad791cf90bc2
permissions -rw-r--r--
[SEDA 2.1] Implement new LegalStatus management information

from cubicweb_seda.dataimport import import_seda_schemes, LCSV_FILES

add_entity_type('SEDALegalStatus')

lcsv_files = [file_def for file_def in LCSV_FILES
              if file_def[-1] == 'legal_status.csv']
import_seda_schemes(cnx, lcsv_files=lcsv_files)

drop_relation_type('seda_reply_code_list_version')