Commit 3c32c27e authored by Klaus Wölfel's avatar Klaus Wölfel

set ingestion start/stop date to supply effective/expiration date

parent 3e50bea0
...@@ -103,9 +103,10 @@ if data_ingestion is None: ...@@ -103,9 +103,10 @@ if data_ingestion is None:
id = data_ingestion_id, id = data_ingestion_id,
portal_type = "Data Ingestion", portal_type = "Data Ingestion",
reference = data_ingestion_reference, reference = data_ingestion_reference,
start_date = now,
specialise_value_list = specialise_value_list) specialise_value_list = specialise_value_list)
composed = data_ingestion.asComposedDocument()
property_list = ["title", property_list = ["title",
"source", "source",
"source_section", "source_section",
...@@ -115,8 +116,11 @@ if data_ingestion is None: ...@@ -115,8 +116,11 @@ if data_ingestion is None:
"destination_project", "destination_project",
"specialise"] "specialise"]
composed = data_ingestion.asComposedDocument() property_dict = {p: composed.getProperty(p) for p in property_list}
data_ingestion.edit(**{p: composed.getProperty(p) for p in property_list}) property_dict["start_date"] = composed.getEffectiveDate()
property_dict["stop_date"] = composed.getExpirationDate()
data_ingestion.edit(**property_dict)
# create ingestion lines from specialise lines and assign input line # create ingestion lines from specialise lines and assign input line
# and operation line # and operation line
......
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