Commit 1acf88bb authored by Eteri's avatar Eteri

do not create Status Configuration if already exists

parent 2dd019da
...@@ -59,7 +59,9 @@ for movement in portal_catalog(query=query): ...@@ -59,7 +59,9 @@ for movement in portal_catalog(query=query):
portal_type="Data Analysis", portal_type="Data Analysis",
specialise_relative_url = transformation.getRelativeUrl(), specialise_relative_url = transformation.getRelativeUrl(),
causality_relative_url = delivery.getRelativeUrl()) causality_relative_url = delivery.getRelativeUrl())
if data_analysis is not None: if data_analysis is not None:
continue continue
# for first level analysis check if same kind of data analysis with same project and same source already exists # for first level analysis check if same kind of data analysis with same project and same source already exists
# If yes, then later add additional input lines to this shared data analysis # If yes, then later add additional input lines to this shared data analysis
...@@ -137,21 +139,17 @@ for movement in portal_catalog(query=query): ...@@ -137,21 +139,17 @@ for movement in portal_catalog(query=query):
# by Data Operation. # by Data Operation.
if item_type not in aggregate_type_set: if item_type not in aggregate_type_set:
if item_type in portal.getPortalDeviceConfigurationTypeList() + portal.getPortalDataConfigurationTypeList(): if item_type in portal.getPortalDeviceConfigurationTypeList() + portal.getPortalDataConfigurationTypeList():
if item_type == "Status Configuration": item = portal.portal_catalog.getResultValue(
item = None portal_type=item_type,
#validation_state="validated",
else: item_project_relative_url=delivery.getDestinationProject(),
item = portal.portal_catalog.getResultValue( item_source_relative_url=delivery.getSource())
portal_type=item_type,
#validation_state="validated",
item_project_relative_url=delivery.getDestinationProject(),
item_source_relative_url=delivery.getSource())
elif item_type != "Data Array Line": elif item_type != "Data Array Line":
item_query_dict = dict( item_query_dict = dict(
portal_type=item_type, portal_type=item_type,
validation_state="validated", validation_state="validated",
......
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