Commit 4c70234f authored by Klaus Wölfel's avatar Klaus Wölfel

make sure to get initial product from data transformation, not data supply

parent d9775fbb
......@@ -2,10 +2,10 @@ portal = context.getPortalObject()
operation = None
use = None
parameter_dict = {}
initial_product = context.getSpecialiseValue().getResourceValue()
initial_product = context.getSpecialiseValue(portal_type="Data Transformation").getResourceValue()
for analysis_line in context.objectValues(portal_type="Data Analysis Line"):
resource = analysis_line.getResourceValue()
if resource == initial_product():
if resource == initial_product:
use = analysis_line.getUse()
if resource is not None:
resource_portal_type = resource.getPortalType()
......
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