Commit bd29bc8e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Remove unused code

getJavascrip and getCss is overwritten under vifib_hosting_theme
parent 4bd88ae8
# This script returns an iterable of the paths to standard CSS objects.
return ('km_css/km_listbox.css',
'vifib_style/listbox.css',
'vifib_style/vifib.css',
'vifib_style/zocial.css')
<?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></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_getCssRelativeUrlList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
# This script returns an iterable of the paths to standard JavaScript objects.
return ('jquery/core/jquery.js', )
<?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></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5Site_getJavaScriptRelativeUrlList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ListBox_asUnorderedListHTML</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:block
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="field_id here/getId;
form_id python: here.getForm().id;
portal_url_string request/current_web_site_url;
real_context here/getContext;
context_url real_context/absolute_url;
line_list here/query;"
i18n:domain="ui">
<tal:comment replace="nothing">
Docstring: Display listbox as ul with RSS link
Interest: create box to display last element with rss feature
</tal:comment>
<tal:block tal:define="max_lines python: int(here.getMaxLineNumber());
total_line python: int(here.total_size);
label_list here/getLabelValueList ;">
<tal:comment replace="nothing">
Info : for list in label_list
sql python: list[0];
title python: list[1];
sort_order python: list[2]">
</tal:comment>
<a tal:attributes="href python: 'WebSite_redirectToPermanentRss?object_url=%s/%s/%s' % (context_url, form_id, field_id)">
<img src="./vifib_image/rss.png" tal:attributes="src python: '%s/vifib_image/rss.png' % portal_url_string"/>
</a>
<div tal:condition="python: total_line == 0" id="result" class="warning clear" i18n:translate="">No results.</div>
<ul tal:condition="line_list" class="clear">
<li tal:repeat="line line_list">
<tal:block tal:repeat="value line/render">
<div tal:define="html python: value[0];
original_value python: value[1];
empty python: original_value in ('', None) and not request.get('editable_mode')"
tal:attributes="class python: repeat['value'].index==0 and 'main' or not repeat['value'].index==0 and 'second'">
<span tal:condition="not: empty" class='title' i18n:translate="" tal:content="python: label_list[repeat['value'].index][1]" />
<span tal:condition="not: empty" tal:replace="structure html">value</span>
</div>
</tal:block>
</li>
</ul>
</tal:block>
<!-- ListBox ends here -->
</tal:block>
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