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
...@@ -140,10 +142,6 @@ for movement in portal_catalog(query=query): ...@@ -140,10 +142,6 @@ for movement in portal_catalog(query=query):
if item_type in portal.getPortalDeviceConfigurationTypeList() + portal.getPortalDataConfigurationTypeList(): if item_type in portal.getPortalDeviceConfigurationTypeList() + portal.getPortalDataConfigurationTypeList():
if item_type == "Status Configuration":
item = None
else:
item = portal.portal_catalog.getResultValue( item = portal.portal_catalog.getResultValue(
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