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
Léo-Paul Géneau
erp5
Commits
6a2e074c
Commit
6a2e074c
authored
Dec 16, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci_slideshow: fix missing html escapes
parent
686d70cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
...eItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
+4
-4
No files found.
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
View file @
6a2e074c
...
...
@@ -4,6 +4,7 @@ Presentation Layout ?portal_skin=CI_slideshow
================================================================================
"""
import
re
from
Products.PythonScripts.standard
import
html_quote
container
.
REQUEST
.
RESPONSE
.
setHeader
(
'content-type'
,
'text/html'
)
...
...
@@ -85,11 +86,10 @@ document = context
# wkhtmltopdf
document_output_type
=
document
.
REQUEST
.
form
.
get
(
"output"
,
default
=
None
)
document_reference
=
document
.
getReference
()
document_content
=
removeEmptyDetails
(
document
.
getTextContent
())
document_theme
=
getThemeFromFirstFollowUpProduct
(
document
_reference
)
document_title
=
document
.
getTitle
(
)
document_description
=
document
.
getDescription
(
)
document_theme
=
getThemeFromFirstFollowUpProduct
(
document
.
getReference
()
)
document_title
=
html_quote
(
document
.
getTitle
()
)
document_description
=
html_quote
(
document
.
getDescription
()
)
document_creation_date
=
document
.
getCreationDate
()
document_creation_year
=
document_creation_date
.
strftime
(
'%Y'
)
if
document_creation_date
else
''
document_theme_logo_url
=
"NXD-Media.Logo."
+
document_theme
.
capitalize
()
...
...
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