Commit cfce9d1e authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: getDataStreamList script gets data ingestions from started state

parent a537672d
import re
from Products.ERP5Type.Log import log
from Products.ZSQLCatalog.SQLCatalog import Query, SimpleQuery, ComplexQuery
portal = context.getPortalObject()
portal_catalog = portal.portal_catalog
......@@ -15,10 +18,14 @@ data_set = portal.data_set_module.get(data_set_reference)
if data_set is None:
return []
states_query = ComplexQuery(Query(simulation_state='Delivered'),
Query(simulation_state='Stopped'),
Query(simulation_state='Started'),
logical_operator="OR")
query_dict = {
"query": states_query,
"portal_type": "Data Ingestion Line",
"resource_portal_type": "Data Product",
"simulation_state": "Delivered"}
"resource_portal_type": "Data Product"}
data_stream_list = []
......
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