Commit 808391e1 authored by Romain Courteaud's avatar Romain Courteaud

wip xxx erp5rjs: delete Base_getListFileFromAppcache

parent 58be3dc2
appcache_reference = context.getLayoutProperty("configuration_manifest_url", default="gadget_erp5.appcache")
web_manifest = context.getPortalObject().portal_catalog.getResultValue(
portal_type='Web Manifest',
reference=appcache_reference)
if web_manifest is None:
text_content = ''
else:
text_content = web_manifest.getTextContent()
translation_data_url_list = []
url_list = []
for text_line in text_content.split('\n'):
text_line = text_line.split('/')[-1]
if text_line.endswith('.html'):
url_list.append(text_line)
continue
if text_line.endswith('.js') and not only_html:
if text_line.endswith('translation_data.js'):
translation_data_url_list = [text_line]
continue
url_list.append(text_line)
return translation_data_url_list + url_list
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>only_html = 0</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_getListFileFromAppcache</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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