Commit a2576908 authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: new ebulk script and minor fix

- ebulk tool last release in data stream
- outdated dataset reference check removed
parent 729c9e39
...@@ -3,9 +3,6 @@ portal = context.getPortalObject() ...@@ -3,9 +3,6 @@ portal = context.getPortalObject()
portal_catalog = portal.portal_catalog portal_catalog = portal.portal_catalog
try: try:
sanitised_reference = re.sub(r"[^a-zA-Z0-9]+", '-', data_set_reference)
if sanitised_reference != data_set_reference:
return { "status_code": 1, "error_message": "Error with dataset reference '%s': invalid dataset name. Only alphanumerics and '-' are allowed." %data_set_reference }
data_set = portal.data_set_module.get(data_set_reference) data_set = portal.data_set_module.get(data_set_reference)
if data_set is None or data_set.getReference().endswith("_invalid"): if data_set is None or data_set.getReference().endswith("_invalid"):
return { "status_code": 0, "result": [] } return { "status_code": 0, "result": [] }
......
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