Commit 568d6333 authored by Eteri's avatar Eteri Committed by Klaus Wölfel

wendelin: support to filter by variation(resolution) in initial product when...

wendelin: support to filter by variation(resolution) in initial product when finding applicable data transformations
parent b82cbfee
...@@ -43,10 +43,14 @@ for movement in portal_catalog(query=query): ...@@ -43,10 +43,14 @@ for movement in portal_catalog(query=query):
if line.getResourceValue() == movement.getResourceValue() and line.getQuantity() < 0: if line.getResourceValue() == movement.getResourceValue() and line.getQuantity() < 0:
transformation_list.append(transformation) transformation_list.append(transformation)
break break
transformation_list += list(portal.portal_catalog( for transformation in portal.portal_catalog(
portal_type = "Data Transformation", portal_type = "Data Transformation",
validation_state = "validated", validation_state = "validated",
resource_relative_url = movement.getResource())) resource_relative_url = movement.getResource()):
# Variation - only with resolution for now
if transformation.getResolution() == movement.getResolution():
transformation_list.append(transformation)
for transformation in transformation_list: for transformation in transformation_list:
is_shared_data_analysis = False is_shared_data_analysis = False
......
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