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
7
Merge Requests
7
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
Jérome Perrin
erp5
Commits
3b72dac2
Commit
3b72dac2
authored
Apr 02, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web_renderjs_ui: py3
parent
43d52401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
...5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
View file @
3b72dac2
...
@@ -15,7 +15,7 @@ portal = context.getPortalObject()
...
@@ -15,7 +15,7 @@ portal = context.getPortalObject()
default_language
=
web_section
.
getLayoutProperty
(
"default_available_language"
,
default
=
'en'
)
default_language
=
web_section
.
getLayoutProperty
(
"default_available_language"
,
default
=
'en'
)
website_url_set
=
{}
website_url_set
=
{}
#
simplify code of Base_doLanguage, can't ues
Base_doLanguage directly
#
simplify code of Base_doLanguage, can't use
Base_doLanguage directly
root_website_url
=
web_section
.
getOriginalDocument
().
absolute_url
()
root_website_url
=
web_section
.
getOriginalDocument
().
absolute_url
()
website_url_pattern
=
r'^%s(?:%s)*(/|$)'
%
(
website_url_pattern
=
r'^%s(?:%s)*(/|$)'
%
(
re
.
escape
(
root_website_url
),
re
.
escape
(
root_website_url
),
...
@@ -91,7 +91,7 @@ if wallpaper_url is None:
...
@@ -91,7 +91,7 @@ if wallpaper_url is None:
mapping_dict
[
"extra_css_full_link_tag"
]
=
''
mapping_dict
[
"extra_css_full_link_tag"
]
=
''
else
:
else
:
from
base64
import
urlsafe_b64encode
from
base64
import
urlsafe_b64encode
mapping_dict
[
"extra_css_full_link_tag"
]
=
'<link rel="stylesheet" href="data:text/css;base64,%s">'
%
urlsafe_b64encode
(
"""
mapping_dict
[
"extra_css_full_link_tag"
]
=
'<link rel="stylesheet" href="data:text/css;base64,%s">'
%
bytes2str
(
urlsafe_b64encode
(
b
"""
html::after {
html::after {
content: "";
content: "";
opacity: 0.1;
opacity: 0.1;
...
@@ -106,6 +106,6 @@ else:
...
@@ -106,6 +106,6 @@ else:
background-attachment: fixed;
background-attachment: fixed;
background-image: url("%s");
background-image: url("%s");
}
}
"""
%
urljoin
(
base_prefix
,
wallpaper_url
))
"""
%
str2bytes
(
urljoin
(
base_prefix
,
wallpaper_url
))
))
return
view_as_web_method
(
mapping_dict
=
mapping_dict
)
return
view_as_web_method
(
mapping_dict
=
mapping_dict
)
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