Commit 9b735b1f authored by Tatuya Kamada's avatar Tatuya Kamada

erp5_wendelin: Check the Data Ingestion is really available when checking the state.

This solves the previous commit problem.

TODO: the test
parent 51e0dc83
......@@ -17,9 +17,9 @@ data_ingestion = portal_catalog.getResultValue(
reference =data_ingestion_reference)
if data_ingestion is None:
data_ingestion = portal.data_ingestion_module.get(data_ingestion_id)
if data_ingestion.getSimulationState() != "started":
data_ingestion = None
document = portal.data_ingestion_module.get(data_ingestion_id)
if (document is not None) and document.getSimulationState() == 'started':
data_ingestion = document
if data_ingestion is None:
specialise_value_list = [x.getObject() for x in portal_catalog.searchResults(
......
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