Commit 823e3ef7 authored by Roque's avatar Roque

erp5_officejs: use web section instead of site for hateoas_appcache

parent 687a9bea
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Static Web Site" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>__before_publishing_traverse__</string> </key>
<value>
<object>
<klass>
<global name="MultiHook" module="ZPublisher.BeforeTraverse"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
<value> <string>__before_publishing_traverse__</string> </value>
</item>
<item>
<key> <string>_list</string> </key>
<value>
<list>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</list>
</value>
</item>
<item>
<key> <string>_prior</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>__before_traverse__</string> </key>
<value>
<dictionary>
<item>
<key>
<tuple>
<int>99</int>
<string>ERP5 Static Web Site/hateoas_appcache</string>
</tuple>
</key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>redirect_domain</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>string</string> </value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>use_moved_temporarily</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>int</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>available_language</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>custom_render_method_id</string> </key>
<value> <string>AppStaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>hateoas_appcache</string> </value>
</item>
<item>
<key> <string>layout_configuration_form_id</string> </key>
<value> <string>StaticWebSite_viewRedirectAssistConfiguration</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Static Web Site</string> </value>
</item>
<item>
<key> <string>redirect_domain</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>skin_selection_name</string> </key>
<value> <string>AppCache</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Hateoas appcache</string> </value>
</item>
<item>
<key> <string>use_moved_temporarily</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="WebSectionTraversalHook" module="Products.ERP5.Document.WebSection"/>
</pickle>
<pickle>
<dictionary/>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -472,7 +472,9 @@
</item>
<item>
<key> <string>configuration_hateoas_url</string> </key>
<value> <string>../hateoas_appcache_texteditor/</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_header_gadget_url</string> </key>
......@@ -787,7 +789,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>977.21913.51373.65194</string> </value>
<value> <string>977.37715.19028.59613</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -805,7 +807,7 @@
</tuple>
<state>
<tuple>
<float>1564148846.11</float>
<float>1565099350.01</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -98,7 +98,7 @@
<key>
<tuple>
<int>99</int>
<string>ERP5 Web Section/definition_section</string>
<string>ERP5 Web Section/hateoas_appcache</string>
</tuple>
</key>
<value>
......@@ -122,19 +122,15 @@
</item>
<item>
<key> <string>container_layout</string> </key>
<value>
<none/>
</value>
<value> <string>AppStaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item>
<key> <string>content_layout</string> </key>
<value>
<none/>
</value>
<value> <string>AppStaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item>
<key> <string>custom_render_method_id</string> </key>
<value> <string>StaticWebSite_getRedirectSourceUrl</string> </value>
<value> <string>AppStaticWebSite_getRedirectSourceUrl</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -148,7 +144,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>definition_section</string> </value>
<value> <string>hateoas_appcache</string> </value>
</item>
<item>
<key> <string>layout_configuration_form_id</string> </key>
......@@ -166,11 +162,11 @@
</item>
<item>
<key> <string>skin_selection_name</string> </key>
<value> <string>RedirectAssist</string> </value>
<value> <string>AppCache</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>definition section</string> </value>
<value> <string>hateoas_appcache</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
......@@ -290,7 +286,7 @@
</tuple>
<state>
<tuple>
<float>1563980447.75</float>
<float>1565084393.33</float>
<string>UTC</string>
</tuple>
</state>
......@@ -335,7 +331,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>977.19112.15439.63300</string> </value>
<value> <string>977.37527.25553.57105</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -353,7 +349,7 @@
</tuple>
<state>
<tuple>
<float>1564139802.63</float>
<float>1565101049.15</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -9,10 +9,15 @@ Redirect to domain specified as layout property on website
import binascii
import base64
name = context.REQUEST.other['source_path']
result_dict = {"error":"url path must start with definition_view"}
result_dict = {"error":"url missing definition view path"}
base_64 = False
try:
name = context.REQUEST.other['source_path']
except KeyError:
return result_dict
try:
encoded = name.replace("definition_view/", "", 1)
name = base64.decodestring(encoded)
......
......@@ -18,7 +18,6 @@ web_page_module/officejs_audioplayer_*
web_page_module/officejs_todomvc_*
web_page_module/ojs_*
web_page_module/wallsearch_privacy_policy_html
web_site_module/hateoas_appcache
web_site_module/officejs_audioplayer
web_site_module/officejs_audioplayer/**
web_site_module/officejs_bookmark_manager
......
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