Commit 4bd88ae8 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Remove dead code

The script SaleOrder_viewBreadcrumbWidget was disabled since begin of the project. So I remove all related code and clean up useless layout forms.
parent d6225671
......@@ -140,7 +140,7 @@
</item>
<item>
<key> <string>container_layout</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
<value> <string>vifib_jauks_layout</string> </value>
</item>
<item>
<key> <string>custom_render_method_id</string> </key>
......
......@@ -128,7 +128,7 @@
</item>
<item>
<key> <string>container_layout</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
<value> <string>vifib_jauks_layout</string> </value>
</item>
<item>
<key> <string>custom_render_method_id</string> </key>
......
......@@ -128,7 +128,7 @@
</item>
<item>
<key> <string>container_layout</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
<value> <string>vifib_jauks_layout</string> </value>
</item>
<item>
<key> <string>custom_render_method_id</string> </key>
......
......@@ -192,7 +192,7 @@
</item>
<item>
<key> <string>container_layout</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
<value> <string>vifib_jauks_layout</string> </value>
</item>
<item>
<key> <string>content_layout</string> </key>
......
"""Add selected release to the cart and continue"""
portal = context.getPortalObject()
if len(uids) != 1:
return context.Base_redirect(dialog_id,
keep_items={'portal_status_message':context.Base_translateString("Please select one software release.")})
else:
session = context.WebSection_getVifibSession()
params = portal.portal_selections.getSelectionParamsFor('vifib_session_id')
params["instance_software_release_uid"] = uids[0]
portal.portal_selections.setSelectionParamsFor('vifib_session_id', params)
if kw.has_key('came_from'):
#we override the context to redirect the user to the next web section
context = portal.restrictedTraverse(kw['came_from'])
software_release = portal.portal_catalog.getResultValue(uid=uids[0])
return software_release.Base_redirect('SoftwareRelease_viewRequestDialog')
# context.WebSection_viewNextStep()
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ERP5 Form" module="erp5.portal_type"/>
</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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>top</string>
<string>breadcrumb</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>breadcrumb</string> </key>
<value>
<list>
<string>breadcrumb _box</string>
</list>
</value>
</item>
<item>
<key> <string>top</string> </key>
<value>
<list>
<string>top_box</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>vifib_hosting_order_layout</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>template_vifib_jauks</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Vifib Default Layout</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>default</string>
<string>enabled</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>breadcrumb _box</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_editor_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewWebFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Navigation</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>context/SaleOrder_viewBreadcrumbWidget</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>default</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>top_box</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_editor_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewWebFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Navigation</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>context/WebSite_viewTopBarWidget</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>SaleOrder_viewBreadcrumbWidget</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:comment replace="nothing">
This widget displays the breadcrumbs of the current context.
</tal:comment>
<tal:block tal:define="website here/getWebSiteValue;
portal_path website/absolute_url;
current_web_section python:request.get('current_web_section', here);
current_web_section_url current_web_section/getAbsoluteUrl;
breadcrumb_list python: context.WebSite_getMainSection().WebSection_getSiteMapTree(property_mapping=('translated_title','id',));">
<ul id="order_breadcrump" class="center"
tal:define="global time string:past">
<tal:block tal:repeat="breadcrumb breadcrumb_list">
<tal:block tal:define="is_active python: current_web_section_url == breadcrumb['url']">
<tal:if tal:condition='is_active'>
<tal:block tal:define="global time string:next"/>
</tal:if>
<li tal:attributes="class python: is_active and 'active' or time">
<img tal:define="img_name python: (is_active or time=='past') and breadcrumb['id'] + '_active' or breadcrumb['id'];"
tal:attributes="src python: '%s/vifib_hosting_image/%s.png' % (portal_path, img_name);
alt breadcrumb/id" />
<a tal:attributes="href python: (is_active or time=='past') and breadcrumb['url'] or None"
tal:content="breadcrumb/translated_title"/>
</li>
<span class="arrow" tal:condition="not:repeat/breadcrumb/end">
<img alt="arrow" tal:attributes="src python: '%s/vifib_hosting_image/arrow%s.png' % (portal_path, (time=='past' and '_active' or ''));" />
</span>
</tal:block>
</tal:block>
</ul>
</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