Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
77a92835
Commit
77a92835
authored
Apr 05, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: Update and clean up SkinSelection test
parent
7e67e940
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
118 deletions
+114
-118
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5SkinSelection.py
...ortal_components/test.erp5.testSlapOSERP5SkinSelection.py
+50
-117
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel.xml
...apos_panel/SkinTemplateItem/portal_skins/slapos_panel.xml
+21
-0
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel_compatibility.xml
...nTemplateItem/portal_skins/slapos_panel_compatibility.xml
+21
-0
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor.xml
...SkinTemplateItem/portal_skins/slapos_parameter_editor.xml
+21
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style.xml
..._style/SkinTemplateItem/portal_skins/slapos_rss_style.xml
+1
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5SkinSelection.py
View file @
77a92835
...
...
@@ -22,7 +22,9 @@
from
erp5.component.test.SlapOSTestCaseMixin
import
SlapOSTestCaseMixin
import
difflib
slapos_folder_list
=
"""slapos_abyss
slapos_folder_list
=
"""slapos_erp5
slapos_upgrader
slapos_abyss
slapos_base
slapos_contract
slapos_subscription_request
...
...
@@ -38,6 +40,9 @@ slapos_pdm
slapos_simulation
slapos_slap_tool
slapos_wechat
slapos_panel
slapos_panel_compatibility
slapos_parameter_editor
slapos_configurator"""
common2_folder_list
=
"""erp5_accounting_l10n_fr
...
...
@@ -150,8 +155,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_web_redirect_assist
erp5_knowledge_pad
...
...
@@ -167,11 +170,9 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -181,8 +182,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -209,11 +208,8 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -226,8 +222,6 @@ erp5_interaction_drop
slapos_deploy_theme
erp5_web_hal_json
erp5_web_renderjs_ui
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -241,11 +235,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -255,8 +247,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_xhtml_disabled
erp5_knowledge_pad
...
...
@@ -274,11 +264,9 @@ erp5_jquery
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -288,8 +276,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_commerce_multiflex_layout
erp5_knowledge_pad
...
...
@@ -304,11 +290,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -318,8 +302,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_web_download_theme
erp5_knowledge_pad
...
...
@@ -335,11 +317,9 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -349,8 +329,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -365,11 +343,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -379,8 +355,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -395,11 +369,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -409,8 +381,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
slapos_rss_style
%(slapos_folder_list)s
erp5_rss_style
...
...
@@ -426,11 +396,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -440,8 +408,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_web_shadir
erp5_web_download_theme
...
...
@@ -458,11 +424,9 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -472,8 +436,6 @@ custom
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_web_shacache
erp5_web_download_theme
...
...
@@ -490,11 +452,9 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -506,8 +466,6 @@ erp5_interaction_drop
slapos_web_renderjs_ui
erp5_web_hal_json
erp5_web_renderjs_ui
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -521,11 +479,9 @@ erp5_integration
erp5_invoicing
%(common_folder_list)s
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -538,8 +494,6 @@ erp5_interaction_drop
erp5_hal_json_restricted_style
erp5_hal_json_style
erp5_web_hal_json
slapos_erp5
slapos_upgrader
%(slapos_folder_list)s
erp5_knowledge_pad
erp5_simulation
...
...
@@ -554,11 +508,9 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
}
...
...
@@ -567,24 +519,7 @@ slapos_panel_compatibility
erp5_font
erp5_interaction_drop
erp5_web_hal_json
slapos_erp5
slapos_upgrader
slapos_abyss
slapos_base
slapos_contract
slapos_subscription_request
slapos_crm_monitoring
slapos_accounting
slapos_administration
slapos_cloud
slapos_consumption
slapos_core
slapos_crm
slapos_payzen
slapos_pdm
slapos_simulation
slapos_slap_tool
slapos_wechat
%(slapos_folder_list)s
erp5_slideshow_style
slapos_configurator
erp5_knowledge_pad
...
...
@@ -600,12 +535,10 @@ erp5_invoicing
%(common_folder_list)s
erp5_xhtml_style
external_method
slapos_panel
slapos_panel_compatibility
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
slapos_folder_list
"""
%
{
'common_folder_list'
:
common_folder_list
,
'common2_folder_list'
:
common2_folder_list
,
'common3_folder_list'
:
common3_folder_list
,
'slapos_folder_list'
:
"
\
n
"
.
join
(
slapos_folder_list
.
splitlines
()[:
-
1
])
}
def
getTitle
(
self
):
...
...
@@ -631,7 +564,7 @@ slapos_panel_compatibility
selection_string_list
=
selection_string_list
.
split
(
'
\
n
'
)
installed_selection_string_list
=
\
[
i
for
i
in
installed_selection_string_list
.
split
(
','
)
[
i
for
i
in
installed_selection_string_list
.
split
(
','
)
if
i
not
in
self
.
ignore_list
]
if
selection_string_list
!=
installed_selection_string_list
:
message
=
'
\
n
Skin "%s" is different from production server:
\
n
'
%
skin_name
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel.xml
View file @
77a92835
...
...
@@ -6,12 +6,33 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
55.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_panel
</string>
</value>
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel_compatibility.xml
View file @
77a92835
...
...
@@ -6,12 +6,33 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
55.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_panel_compatibility
</string>
</value>
...
...
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor.xml
View file @
77a92835
...
...
@@ -6,12 +6,33 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
55.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_parameter_editor
</string>
</value>
...
...
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style.xml
View file @
77a92835
...
...
@@ -31,7 +31,7 @@
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
8
1.0
</float>
</value>
<value>
<float>
9
1.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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