Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
9d154971
Commit
9d154971
authored
Dec 22, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: allow to dump slideshow cover for tests
parent
53b1792a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_slide/WebPage_viewAsSlideshow.py
.../erp5_corporate_identity_slide/WebPage_viewAsSlideshow.py
+5
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_slide/WebPage_viewAsSlideshow.py
View file @
9d154971
...
...
@@ -271,7 +271,7 @@ if getDetails(doc_content) > -1:
doc_content
=
doc_content
.
replace
(
slide
,
details
)
# ======================== Format: html/mhtml ==================================
if
doc_format
==
"html"
or
doc_format
==
"mhtml"
:
if
doc_format
==
"html"
:
#
or doc_format == "mhtml":
doc_output
=
doc
.
WebPage_createSlideshow
(
doc_format
=
doc_format
,
doc_theme
=
doc_theme
.
get
(
"theme"
),
...
...
@@ -309,7 +309,7 @@ if doc_format == "html" or doc_format == "mhtml":
return
doc
.
Base_convertHtmlToSingleFile
(
doc_output
,
allow_script
=
True
)
# ============================= Format: pdf ====================================
if
doc_format
==
"pdf"
:
if
doc_format
==
"pdf"
or
doc_format
==
"mhtml"
:
doc_slideshow_footer
=
doc
.
WebPage_createSlideshowFooter
(
doc_format
=
doc_format
,
doc_theme
=
doc_theme
.
get
(
"theme"
),
...
...
@@ -368,6 +368,9 @@ if doc_format == "pdf":
before_body_data_list
=
[
b64encode
(
doc
.
Base_convertHtmlToSingleFile
(
doc_slideshow_cover
,
allow_script
=
True
)),
]
if
doc_format
==
"mhtml"
:
context
.
REQUEST
.
RESPONSE
.
setHeader
(
"Content-Type"
,
"text/html;"
)
return
doc
.
Base_convertHtmlToSingleFile
(
doc_slideshow_cover
,
allow_script
=
True
)
if
doc_display_notes
:
after_body_data_list
=
[
b64encode
(
doc
.
Base_convertHtmlToSingleFile
(
doc_slideshow_notes
,
allow_script
=
True
)),
...
...
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