in src/loading_manifest/common_manifest.py [0:0]
def create_work_product_component_manifest(
kind,
acl,
legal,
resource_security_classificaton,
name,
description):
wpc = dict()
wpc[WorkProductComponentManifest.TAG_ID] = ""
wpc[WorkProductComponentManifest.TAG_KIND] = kind
wpc[WorkProductComponentManifest.TAG_ACL] = acl
wpc[WorkProductComponentManifest.TAG_LEGAL] = legal
wpc[WorkProductComponentManifest.TAG_META] = []
wpc_data = dict()
wpc[WorkProductComponentManifest.TAG_DATA] = wpc_data
wpc_data[WorkProductComponentManifest.TAG_RESOURCE_SECURITY_CLASSIFICATION] \
= resource_security_classificaton
wpc_data[WorkProductComponentManifest.TAG_DATA_NAME] = name
wpc_data[WorkProductComponentManifest.TAG_DATA_DESCRIPTION] = description
wpc_data[WorkProductComponentManifest.TAG_DATA_DATASETS] = list()
# wpc_data[WorkProductComponentManifest.TAG_DATA_EXTENSION_PROPERTIES] = dict()
return wpc