Commit b1126b15 authored by Yusei Tahara's avatar Yusei Tahara Committed by Romain Courteaud

[erp5_web_renderjs_ui] Fix translation script. Get service worker filename...

[erp5_web_renderjs_ui] Fix translation script. Get service worker filename from layout property. Don't hardcode it.
parent dd5b4c74
import re
text_content = context.portal_catalog.getResultValue(reference='gadget_erp5_serviceworker.js', portal_type='Web Script', validation_state=('published_alive', 'published')).getTextContent()
service_worker_reference = context.getLayoutProperty("configuration_service_worker_url", default="gadget_erp5_serviceworker.js")
text_content = context.web_page_module.searchFolder(
portal_type='Web Script',
reference=service_worker_reference)[0].getTextContent()
filename_pattern = re.compile("'(?P<filename>[a-zA-Z0-9-_\.\?=]*)'")
filename_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