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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
16408ff8
Commit
16408ff8
authored
May 19, 2017
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: Put all apps in one website
parent
ef54976b
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
713 additions
and
232 deletions
+713
-232
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.xml
...eb_page_module/gadget_ojs_appstore_redirect_page_html.xml
+6
-4
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list.xml
...ase/PathTemplateItem/web_site_module/application-list.xml
+439
-0
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list/template.xml
...emplateItem/web_site_module/application-list/template.xml
+95
-57
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list/template/template.xml
...em/web_site_module/application-list/template/template.xml
+121
-85
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareProduct_fixRelatedWebSite.py
...ficejs_appstore_base/SoftwareProduct_fixRelatedWebSite.py
+2
-5
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareProduct_getRelatedWebSite.py
...ficejs_appstore_base/SoftwareProduct_getRelatedWebSite.py
+1
-1
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublicationModule_view.xml
...officejs_appstore_base/SoftwarePublicationModule_view.xml
+2
-3
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublication_getTestUrl.py
..._officejs_appstore_base/SoftwarePublication_getTestUrl.py
+6
-6
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublication_submitSoftwarePublication.py
...ore_base/SoftwarePublication_submitSoftwarePublication.py
+8
-5
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_fixRelatedWebSection.py
...ejs_appstore_base/SoftwareRelease_fixRelatedWebSection.py
+19
-26
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_fixRelatedWebSection.xml
...js_appstore_base/SoftwareRelease_fixRelatedWebSection.xml
+1
-1
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_publishRelatedWebDocument.py
...ppstore_base/SoftwareRelease_publishRelatedWebDocument.py
+1
-32
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSApplicationPage.py
...appstore_base/WebSection_renderOfficeJSApplicationPage.py
+1
-1
bt5/erp5_officejs_appstore_base/bt/template_keep_last_workflow_history_only_path_list
...ase/bt/template_keep_last_workflow_history_only_path_list
+3
-2
bt5/erp5_officejs_appstore_base/bt/template_keep_path_list
bt5/erp5_officejs_appstore_base/bt/template_keep_path_list
+2
-0
bt5/erp5_officejs_appstore_base/bt/template_keep_workflow_path_list
...fficejs_appstore_base/bt/template_keep_workflow_path_list
+3
-2
bt5/erp5_officejs_appstore_base/bt/template_path_list
bt5/erp5_officejs_appstore_base/bt/template_path_list
+3
-2
No files found.
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_page_module/gadget_ojs_appstore_redirect_page_html.xml
View file @
16408ff8
...
...
@@ -109,7 +109,9 @@
</item>
<item>
<key>
<string>
text_content_substitution_mapping_method_id
</string>
</key>
<value>
<string>
WebPage_getRenderJSSubstitutionMappingDict
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -230,7 +232,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedricle
n
</string>
</value>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -244,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
1.19443.53509.7185
</string>
</value>
<value>
<string>
95
8.21401.8615.61559
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
14
63665193.7
</float>
<float>
14
93976571.58
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/application-list.xml
0 → 100644
View file @
16408ff8
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Site"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Authenticated
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Member
</string>
<string>
Owner
</string>
<string>
Reviewer
</string>
</tuple>
</value>
</item>
<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>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Authenticated
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Member
</string>
<string>
Owner
</string>
<string>
Reviewer
</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 Web Site/application-list
</string>
</tuple>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAY=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAc=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
available_language
</string>
</key>
<value>
<tuple>
<string>
fr
</string>
<string>
en
</string>
<string>
zh
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
container_layout
</string>
</key>
<value>
<string>
erp5_web_layout
</string>
</value>
</item>
<item>
<key>
<string>
content_layout
</string>
</key>
<value>
<string>
erp5_web_content_layout
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
application-list
</string>
</value>
</item>
<item>
<key>
<string>
layout_configuration_form_id
</string>
</key>
<value>
<string>
WebSection_viewDefaultThemeConfiguration
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Site
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
static_language_selection
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Liste des Applications OfficeJS
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAg=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"WebSiteTraversalHook"
module=
"Products.ERP5.Document.WebSite"
/>
</pickle>
<pickle>
<dictionary/>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</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>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"6"
aka=
"AAAAAAAAAAY="
>
<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=
"7"
aka=
"AAAAAAAAAAc="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"8"
aka=
"AAAAAAAAAAg="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
category_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAk=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAo=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"9"
aka=
"AAAAAAAAAAk="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivin
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1495187372.09
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"10"
aka=
"AAAAAAAAAAo="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivin
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.30571.40365.35123
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1495185352.08
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/
officejs_app_template
/template.xml
→
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/
application-list
/template.xml
View file @
16408ff8
...
...
@@ -2,7 +2,7 @@
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"
Static
Web Section"
module=
"erp5.portal_type"
/>
<global
name=
"Web Section"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
...
...
@@ -109,69 +109,47 @@
</value>
</item>
<item>
<key>
<string>
_
identity_criterion
</string>
</key>
<key>
<string>
_
count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_
local_properties
</string>
</key>
<key>
<string>
_
identity_criterion
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_x_frame_options
</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>
configuration_content_security_policy
</string>
</value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
string
</string>
</value>
</item>
</dictionary>
</tuple>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Y
=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
configuration_content_security_policy
</string>
</key>
<value>
<string>
default-src * \'self\' \'unsafe-inline\' \'unsafe-eval\' data: blob:
</string>
</value>
</item>
<item>
<key>
<string>
configuration_x_frame_options
</string>
</key>
<value>
<string>
ALLOW-FROM-ALL
</string>
</value>
</item>
<item>
<key>
<string>
container_layout
</string>
</key>
<value>
<string>
WebSection_renderDefaultPageAsGadget
</string>
</value>
</item>
<item>
<key>
<string>
content_layout
</string>
</key>
<value>
<string>
WebSection_renderDefaultPageAsGadget
</string>
</value>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAc=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
custom_render_method_id
</string>
</key>
<value>
<string>
WebSection_renderDefaultPageAsGadget
</string>
</value>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
aggregate/web_page_module/gadget_ojs_appstore_redirect_page_html
</string>
<string>
caching_policy/must-revalidate
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
Template used to create WebSite
</string>
</value>
</item>
<item>
<key>
<string>
empty_criterion_valid
</string>
</key>
...
...
@@ -181,9 +159,15 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
template
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Static
Web Section
</string>
</value>
<value>
<string>
Web Section
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
...
...
@@ -193,7 +177,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Template
Section
</string>
</value>
<value>
<string>
Template
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
...
...
@@ -202,7 +186,7 @@
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
U
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
g
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -217,6 +201,12 @@
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -231,7 +221,15 @@
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"6"
aka=
"AAAAAAAAAAY="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -246,7 +244,15 @@
</dictionary>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"7"
aka=
"AAAAAAAAAAc="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"8"
aka=
"AAAAAAAAAAg="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -259,13 +265,13 @@
<item>
<key>
<string>
category_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Y
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
k
=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
c
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
o
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -274,7 +280,7 @@
</dictionary>
</pickle>
</record>
<record
id=
"
6"
aka=
"AAAAAAAAAAY
="
>
<record
id=
"
9"
aka=
"AAAAAAAAAAk
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
...
...
@@ -313,7 +319,7 @@
</tuple>
<state>
<tuple>
<float>
149
0973336.84
</float>
<float>
149
5185385.45
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -329,7 +335,7 @@
</tuple>
</pickle>
</record>
<record
id=
"
7"
aka=
"AAAAAAAAAAc
="
>
<record
id=
"
10"
aka=
"AAAAAAAAAAo
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
...
...
@@ -349,7 +355,7 @@
<item>
<key>
<string>
comment
</string>
</key>
<value>
<
none/
>
<
persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAs=
</string>
</persistent
>
</value>
</item>
<item>
...
...
@@ -358,7 +364,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
958.24468.20075.50363
</string>
</value>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -376,7 +382,7 @@
</tuple>
<state>
<tuple>
<float>
149
0973460.32
</float>
<float>
149
5185385.46
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -388,4 +394,36 @@
</tuple>
</pickle>
</record>
<record
id=
"11"
aka=
"AAAAAAAAAAs="
>
<pickle>
<global
name=
"Message"
module=
"Products.ERP5Type.Message"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string>
Object copied from ${source_item}
</string>
</value>
</item>
<item>
<key>
<string>
domain
</string>
</key>
<value>
<string>
erp5_ui
</string>
</value>
</item>
<item>
<key>
<string>
mapping
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
source_item
</string>
</key>
<value>
<string>
/erp5/web_site_module/application-list-old/template
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
message
</string>
</key>
<value>
<string>
Object copied from ${source_item}
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/
officejs_app_
template.xml
→
bt5/erp5_officejs_appstore_base/PathTemplateItem/web_site_module/
application-list/template/
template.xml
View file @
16408ff8
...
...
@@ -2,7 +2,7 @@
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"
Web Site
"
module=
"erp5.portal_type"
/>
<global
name=
"
Static Web Section
"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
...
...
@@ -98,7 +98,7 @@
<key>
<tuple>
<int>
99
</int>
<string>
ERP5 Web S
ite/officejs_app_
template
</string>
<string>
ERP5 Web S
ection/
template
</string>
</tuple>
</key>
<value>
...
...
@@ -108,16 +108,10 @@
</dictionary>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_identity_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</item>
<item>
...
...
@@ -127,7 +121,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_
content_security_policy
</string>
</value>
<value>
<string>
configuration_
x_frame_options
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
...
...
@@ -137,7 +131,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_
latest_version
</string>
</value>
<value>
<string>
configuration_
content_security_policy
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
...
...
@@ -147,7 +141,7 @@
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_
x_frame_options
</string>
</value>
<value>
<string>
configuration_
base_reference
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
...
...
@@ -157,48 +151,27 @@
</tuple>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_range_criterion
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAY=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAc=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
available_language
</string>
</key>
<value>
<tuple>
<string>
en
</string>
</tuple>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
caching_policy/must-revalidate
</string>
<string>
aggregate/web_page_module/gadget_ojs_appstore_redirect_page_html
</string>
<string>
caching_policy/one-year-cache
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
configuration_
content_security_policy
</string>
</key>
<value>
<string>
default-src * \'self\' \'unsafe-inline\' \'unsafe-eval\'
</string>
</value>
<key>
<string>
configuration_
base_reference
</string>
</key>
<value>
<string>
template/
</string>
</value>
</item>
<item>
<key>
<string>
configuration_
latest_version
</string>
</key>
<value>
<string>
de
velopment
</string>
</value>
<key>
<string>
configuration_
content_security_policy
</string>
</key>
<value>
<string>
de
fault-src * \'self\' \'unsafe-inline\' \'unsafe-eval\' data: blob:
</string>
</value>
</item>
<item>
<key>
<string>
configuration_x_frame_options
</string>
</key>
...
...
@@ -206,15 +179,23 @@
</item>
<item>
<key>
<string>
container_layout
</string>
</key>
<value>
<string>
WebSection_renderOfficeJSApplicationPage
</string>
</value>
<value>
<string>
File_viewAsWeb
</string>
</value>
</item>
<item>
<key>
<string>
content_layout
</string>
</key>
<value>
<string>
WebSection_renderOfficeJSApplicationPage
</string>
</value>
<value>
<string>
File_viewAsWeb
</string>
</value>
</item>
<item>
<key>
<string>
criterion_property
</string>
</key>
<value>
<tuple>
<string>
version
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
custom_render_method_id
</string>
</key>
<value>
<string>
WebSection_renderOfficeJSApplicationPage
</string>
</value>
<value>
<string>
File_viewAsWeb
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -222,33 +203,69 @@
<none/>
</value>
</item>
<item>
<key>
<string>
empty_criterion_valid
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
officejs_app_template
</string>
</value>
<value>
<string>
template
</string>
</value>
</item>
<item>
<key>
<string>
int_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
layout_configuration_form_id
</string>
</key>
<value>
<string>
WebSection_viewOfficeJSApplicationPreference
</string>
</value>
</item>
<item>
<key>
<string>
membership_criterion_base_category
</string>
</key>
<value>
<tuple>
<string>
follow_up
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
membership_criterion_category
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Site
</string>
</value>
<value>
<string>
Static Web Section
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<string>
Application Template
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
skin_selection_name
</string>
</key>
<value>
<string>
RJS
</string>
</value>
<key>
<string>
string_index
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
static_language_selection
</string>
</key>
<value>
<int>
1
</int>
</value>
<key>
<string>
test_method_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Application Template
</string>
</value>
<value>
<string>
Template Web Section
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
...
...
@@ -257,7 +274,7 @@
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
g
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
U
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -265,19 +282,13 @@
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"WebS
iteTraversalHook"
module=
"Products.ERP5.Document.WebSite
"
/>
<global
name=
"WebS
ectionTraversalHook"
module=
"Products.ERP5.Document.WebSection
"
/>
</pickle>
<pickle>
<dictionary/>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -286,21 +297,20 @@
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
<dictionary>
<item>
<key>
<string>
version
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"6"
aka=
"AAAAAAAAAAY="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -315,15 +325,7 @@
</dictionary>
</pickle>
</record>
<record
id=
"7"
aka=
"AAAAAAAAAAc="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"8"
aka=
"AAAAAAAAAAg="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
...
...
@@ -336,13 +338,13 @@
<item>
<key>
<string>
category_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
k
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Y
=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
o
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
c
=
</string>
</persistent>
</value>
</item>
</dictionary>
...
...
@@ -351,7 +353,7 @@
</dictionary>
</pickle>
</record>
<record
id=
"
9"
aka=
"AAAAAAAAAAk
="
>
<record
id=
"
6"
aka=
"AAAAAAAAAAY
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
...
...
@@ -390,7 +392,7 @@
</tuple>
<state>
<tuple>
<float>
14
58146479.1
6
</float>
<float>
14
95185385.4
6
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -406,7 +408,7 @@
</tuple>
</pickle>
</record>
<record
id=
"
10"
aka=
"AAAAAAAAAAo
="
>
<record
id=
"
7"
aka=
"AAAAAAAAAAc
="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
...
...
@@ -426,7 +428,7 @@
<item>
<key>
<string>
comment
</string>
</key>
<value>
<
none/
>
<
persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAg=
</string>
</persistent
>
</value>
</item>
<item>
...
...
@@ -435,7 +437,9 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
958.24467.40344.6724
</string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -453,7 +457,7 @@
</tuple>
<state>
<tuple>
<float>
149
0973425.66
</float>
<float>
149
5185385.48
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -465,4 +469,36 @@
</tuple>
</pickle>
</record>
<record
id=
"8"
aka=
"AAAAAAAAAAg="
>
<pickle>
<global
name=
"Message"
module=
"Products.ERP5Type.Message"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string>
Object copied from ${source_item}
</string>
</value>
</item>
<item>
<key>
<string>
domain
</string>
</key>
<value>
<string>
erp5_ui
</string>
</value>
</item>
<item>
<key>
<string>
mapping
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
source_item
</string>
</key>
<value>
<string>
/erp5/web_site_module/application-list-old/template
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
message
</string>
</key>
<value>
<string>
Object copied from ${source_item}
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareProduct_fixRelatedWebSite.py
View file @
16408ff8
portal
=
context
.
getPortalObject
()
web_site
=
context
.
getFollowUpValue
(
portal_type
=
"Web S
ite
"
)
web_site
=
context
.
getFollowUpValue
(
portal_type
=
"Web S
ection
"
)
# Create Web Site if necessary
if
not
web_site
:
# XXX Hardcoded templ
web_site
=
portal
.
web_site_module
.
officejs_app_
template
.
Base_createCloneDocument
(
batch_mode
=
True
)
web_site
=
portal
.
web_site_module
[
'application-list'
].
template
.
Base_createCloneDocument
(
batch_mode
=
True
)
web_site
.
edit
(
title
=
context
.
getTitle
(),
short_title
=
context
.
getTitle
(),
...
...
@@ -17,8 +17,5 @@ if not web_site:
if
not
web_site
.
getId
()
==
context
.
getReference
().
lower
():
web_site
.
setId
(
context
.
getReference
().
lower
())
if
portal
.
portal_workflow
.
isTransitionPossible
(
web_site
,
'publish'
):
web_site
.
publish
()
if
batch_mode
:
return
web_site
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareProduct_getRelatedWebSite.py
View file @
16408ff8
return
context
.
getFollowUpValue
(
portal_type
=
"Web S
ite
"
)
return
context
.
getFollowUpValue
(
portal_type
=
"Web S
ection
"
)
raise
ValueError
(
"Unimplemented"
)
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublicationModule_view.xml
View file @
16408ff8
...
...
@@ -85,15 +85,14 @@
<list>
<string>
listbox_delivery_start_date
</string>
<string>
listbox_delivery_stop_date
</string>
<string>
listbox_modification_date
</string>
</list>
</value>
</item>
<item>
<key>
<string>
left
</string>
</key>
<value>
<list>
<string>
listbox_modification_date
</string>
</list>
<list/>
</value>
</item>
<item>
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublication_getTestUrl.py
View file @
16408ff8
...
...
@@ -5,11 +5,11 @@ software_publication_line = software_publication_line_list[0]
software_release
=
software_publication_line
.
getAggregateValue
(
portal_type
=
"Software Release"
)
software_product
=
software_publication_line
.
getResourceValue
(
portal_type
=
"Software Product"
)
if
not
software_product
or
not
software_release
:
if
not
software_product
or
not
software_release
or
not
software_product
.
getFollowUpId
(
portal_type
=
"Web Section"
)
:
return
software_release_version
=
software_release
.
getReference
()
#if as_link:
# return '<a href="%(link)s">%(link)s</a>' % {"link": (software_product.getFollowUpValue(portal_type="Web Site")[software_release_version].absolute_url() + "/")}
return
software_product
.
getFollowUpValue
(
portal_type
=
"Web Site"
)[
software_release_version
].
absolute_url
()
+
"/"
# XXX Hardcoded
return
"https://%s.app.officejs.com/%s/"
%
(
software_product
.
getFollowUpId
(
portal_type
=
"Web Section"
),
software_release
.
getReference
(),
)
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwarePublication_submitSoftwarePublication.py
View file @
16408ff8
...
...
@@ -58,6 +58,7 @@ base_length = len(base)
software_release_url
=
software_release
.
getRelativeUrl
()
tag
=
"preparing_sr_%s"
%
software_release_url
default_page
=
""
for
name
in
zip_reader
.
namelist
():
if
zip_reader
.
getinfo
(
name
).
file_size
==
0
:
continue
...
...
@@ -84,12 +85,14 @@ for name in zip_reader.namelist():
# XX Hackish
document
.
setCategoryList
(
document
.
getCategoryList
()
+
[
"contributor/"
+
software_publication
.
getSource
()])
document
.
activate
(
tag
=
tag
).
submit
()
if
url
in
(
"index.html"
,
"index.htm"
):
default_page
=
document
.
getRelativeUrl
()
document
.
activate
(
tag
=
tag
).
publish
()
software_release
.
activate
(
after_tag
=
tag
,
tag
=
tag
+
"_2"
).
SoftwareRelease_fixRelatedWebSection
(
)
software_release
.
SoftwareRelease_fixRelatedWebSection
(
default_page
=
default_page
)
if
portal
.
portal_workflow
.
isTransitionPossible
(
zip_file
,
'
submit
'
):
zip_file
.
submit
()
if
portal
.
portal_workflow
.
isTransitionPossible
(
zip_file
,
'
publish
'
):
zip_file
.
publish
()
if
portal
.
portal_workflow
.
isTransitionPossible
(
software_release
,
'submit'
):
software_release
.
submit
()
software_publication
.
activate
(
after_tag
=
tag
+
"_2"
).
submit
()
software_publication
.
activate
(
after_tag
=
tag
).
submit
()
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_fixRelatedWebSection.py
View file @
16408ff8
...
...
@@ -6,15 +6,12 @@ software_product = software_release.getFollowUpValue(portal_type="Software Produ
web_site
=
software_product
.
SoftwareProduct_fixRelatedWebSite
(
batch_mode
=
True
)
version
=
software_release
.
getReference
()
context
.
log
(
version
)
context
.
log
(
"%s"
%
web_site
.
getRelativeUrl
())
try
:
web_section
=
web_site
.
restrictedTraverse
(
version
)
except
KeyError
:
source
=
portal
.
web_site_module
.
officejs_app_template
clipboard
=
source
.
manage_copyObjects
(
ids
=
[
"template"
])
context
.
REQUEST
.
set
(
'__cp'
,
clipboard
)
# CopySupport is using this to set
# tracebility information in edit_workflow history
paste_result
=
web_site
.
manage_pasteObjects
(
cb_copy_data
=
clipboard
)
web_section
=
web_site
[
paste_result
[
0
][
'new_id'
]]
web_section
=
web_site
.
template
.
Base_createCloneDocument
(
batch_mode
=
True
)
web_section
.
edit
(
id
=
version
,
title
=
software_release
.
getVersion
(),
...
...
@@ -24,30 +21,26 @@ except KeyError:
# Update development section to use version and follow_up
web_section
.
setCriterionPropertyList
([
"version"
,
"validation_state"
,
])
web_section
.
setCriterion
(
'version'
,
version
[:
10
])
web_section
.
setCriterion
(
'validation_state'
,
'submitted'
)
web_section
.
setMembershipCriterionBaseCategoryList
([
'follow_up'
])
web_section
.
setMembershipCriterionCategoryList
([
'follow_up/'
+
context
.
getRelativeUrl
()])
if
portal
.
portal_workflow
.
isTransitionPossible
(
web_section
,
'publish'
):
web_section
.
publish
()
# Update default page for development version.
landing_publication_uid
=
portal
.
portal_categories
.
publication_section
.
application
.
landing_page
.
getUid
()
aggregate_list
=
portal
.
portal_catalog
(
if
not
default_page
:
# Update default page for development version.
landing_publication_uid
=
portal
.
portal_categories
.
publication_section
.
application
.
landing_page
.
getUid
()
aggregate_list
=
portal
.
portal_catalog
(
portal_type
=
"File"
,
strict_follow_up_uid
=
context
.
getUid
(),
strict_publication_section_uid
=
landing_publication_uid
,
validation_state
=
"submitted"
,
#XXX Hackish
sort_on
=
[(
"modification_date"
,
"descending"
)],
limit
=
1
,
select_list
=
[
"relative_url"
],
)
if
aggregate_list
:
)
if
aggregate_list
:
web_section
.
setAggregate
(
aggregate_list
[
0
].
relative_url
)
else
:
web_section
.
setAggregate
(
default_page
)
return
"Done"
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_fixRelatedWebSection.xml
View file @
16408ff8
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
default_page=""
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareRelease_publishRelatedWebDocument.py
View file @
16408ff8
portal
=
context
.
getPortalObject
()
software_release
=
context
# Publish Web Document
web_document_list
=
portal
.
portal_catalog
(
portal_type
=
portal
.
getPortalDocumentTypeList
(),
strict_follow_up_uid
=
software_release
.
getUid
(),
validation_state
=
"submitted"
,
)
today
=
DateTime
().
earliestTime
()
for
web_document
in
web_document_list
:
web_document
.
setEffectiveDate
(
today
)
web_document
.
publish
()
software_product
=
context
.
getFollowUpValue
(
portal_type
=
"Software Product"
)
web_site
=
software_product
.
SoftwareProduct_getRelatedWebSite
()
# Publish Web Site, Websection and update version
today
=
DateTime
().
earliestTime
()
if
web_site
.
getValidationState
()
!=
'published'
:
web_site
.
setEffectiveDate
(
today
)
web_site
.
publish
()
version_web_section
=
web_site
[
software_release
.
getReference
()]
version_web_section
.
setCriterion
(
'validation_state'
,
'published'
)
if
portal
.
portal_workflow
.
isTransitionPossible
(
version_web_section
,
'publish'
):
version_web_section
.
publish
()
def
webSectionUpdatePredicate
(
current_section
):
current_section
.
setCriterion
(
'validation_state'
,
'published'
)
for
child_section
in
current_section
.
objectValues
(
portal_type
=
"Web Section"
):
webSectionUpdatePredicate
(
child_section
)
webSectionUpdatePredicate
(
version_web_section
)
web_site
.
edit
(
configuration_latest_version
=
software_release
.
get
Version
(),
configuration_latest_version
=
software_release
.
get
Reference
(),
)
# Update appcache
...
...
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/WebSection_renderOfficeJSApplicationPage.py
View file @
16408ff8
...
...
@@ -8,6 +8,6 @@ web_section = REQUEST.get("current_web_section")
#raise ValueError(web_section.getLayoutProperty("configuration_latest_version", default="development"))
return
default_web_page
.
WebPage_viewAsWeb
(
mapping_dict
=
{
#
"latest_version": web_section.getLayoutProperty("configuration_latest_version", default="development"),
"latest_version"
:
web_section
.
getLayoutProperty
(
"configuration_latest_version"
,
default
=
"development"
),
#"application_appcache": web_section.getId() + ".appcache",
})
bt5/erp5_officejs_appstore_base/bt/template_keep_last_workflow_history_only_path_list
View file @
16408ff8
web_page_module/gadget_ojs_*
web_site_module/officejs_appstore
web_site_module/officejs_appstore/**
web_site_module/officejs_app_template
web_site_module/officejs_app_template/**
\ No newline at end of file
web_site_module/application-list
web_site_module/application-list/template
web_site_module/application-list/template/**
\ No newline at end of file
bt5/erp5_officejs_appstore_base/bt/template_keep_path_list
0 → 100644
View file @
16408ff8
web_site_module/officejs_app_template
web_site_module/officejs_app_template/**
\ No newline at end of file
bt5/erp5_officejs_appstore_base/bt/template_keep_workflow_path_list
View file @
16408ff8
web_page_module/gadget_ojs_*
web_site_module/officejs_appstore
web_site_module/officejs_appstore/**
web_site_module/officejs_app_template
web_site_module/officejs_app_template/**
\ No newline at end of file
web_site_module/application-list
web_site_module/application-list/template
web_site_module/application-list/template/**
\ No newline at end of file
bt5/erp5_officejs_appstore_base/bt/template_path_list
View file @
16408ff8
...
...
@@ -3,7 +3,8 @@ portal_categories/product_line/software
portal_categories/product_line/software/**
portal_categories/publication_section/**
web_page_module/gadget_ojs_*
web_site_module/officejs_app_template
web_site_module/officejs_app_template/**
web_site_module/application-list
web_site_module/application-list/template
web_site_module/application-list/template/**
web_site_module/officejs_appstore
web_site_module/officejs_appstore/**
\ No newline at end of file
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