Commit 6d1cb2bb authored by Klaus Wölfel's avatar Klaus Wölfel

attach items to all analysis lines, not only to operation lines

parent 79a0c9e8
...@@ -109,16 +109,14 @@ for movement in portal_catalog(query): ...@@ -109,16 +109,14 @@ for movement in portal_catalog(query):
except AttributeError: except AttributeError:
pass pass
aggregate_set.add(item.getRelativeUrl()) aggregate_set.add(item.getRelativeUrl())
elif transformation_line.getPortalType() == \ # find other items such as device configuration and data configuration
"Data Transformation Operation Line": # from data ingestion and data supply
# find other items such as device configuration and data configuration composed = data_analysis.asComposedDocument()
# from data ingestion and data supply line_list = [l for l in delivery.objectValues(portal_type="Data Ingestion Line")]
composed = data_analysis.asComposedDocument() line_list += [l for l in composed.objectValues(portal_type="Data Supply Line")]
line_list = [l for l in delivery.objectValues(portal_type="Data Ingestion Line")] for line in line_list:
line_list += [l for l in composed.objectValues(portal_type="Data Supply Line")] if line.getResourceValue().getPortalType() == "Data Operation":
for line in line_list: aggregate_set.update(line.getAggregateList())
if line.getResourceValue().getPortalType() == "Data Operation":
aggregate_set.update(line.getAggregateList())
data_analysis.newContent( data_analysis.newContent(
portal_type = "Data Analysis Line", portal_type = "Data Analysis 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