Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
141
Merge Requests
141
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
823e3ef7
Commit
823e3ef7
authored
Aug 06, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: use web section instead of site for hateoas_appcache
parent
687a9bea
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
675 deletions
+22
-675
bt5/erp5_officejs/PathTemplateItem/web_site_module/hateoas_appcache.xml
...ejs/PathTemplateItem/web_site_module/hateoas_appcache.xml
+0
-247
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/app.xml
...TemplateItem/web_site_module/officejs_text_editor/app.xml
+5
-3
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/app/hateoas_appcache_texteditor.xml
.../officejs_text_editor/app/hateoas_appcache_texteditor.xml
+0
-408
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/hateoas_appcache.xml
...web_site_module/officejs_text_editor/hateoas_appcache.xml
+10
-14
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/AppStaticWebSite_getRedirectSourceUrl.py
..._web_officejs_ui/AppStaticWebSite_getRedirectSourceUrl.py
+7
-2
bt5/erp5_officejs/bt/template_path_list
bt5/erp5_officejs/bt/template_path_list
+0
-1
No files found.
bt5/erp5_officejs/PathTemplateItem/web_site_module/hateoas_appcache.xml
deleted
100644 → 0
View file @
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>
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/app.xml
View file @
823e3ef7
...
...
@@ -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>
156
4148846.1
1
</float>
<float>
156
5099350.0
1
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/app/hateoas_appcache_texteditor.xml
deleted
100644 → 0
View file @
687a9bea
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/
app/hateoas_appcache_texteditor/definition_section
.xml
→
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor/
hateoas_appcache
.xml
View file @
823e3ef7
...
...
@@ -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>
App
StaticWebSite_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>
156
3980447.75
</float>
<float>
156
5084393.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>
156
4139802.63
</float>
<float>
156
5101049.15
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/AppStaticWebSite_getRedirectSourceUrl.py
View file @
823e3ef7
...
...
@@ -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
)
...
...
bt5/erp5_officejs/bt/template_path_list
View file @
823e3ef7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment