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
Titouan Soulard
erp5
Commits
71c99b41
Commit
71c99b41
authored
Nov 29, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: stop using `html_quotes` for books metadata
parent
0236f68b
Pipeline
#38326
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
...ortal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
+6
-7
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
View file @
71c99b41
...
...
@@ -35,7 +35,6 @@ MAIN FILE: generate book in different output formats
import
re
import
six
from
Products.PythonScripts.standard
import
html_quote
from
Products.ERP5Type.Utils
import
str2bytes
,
bytes2str
,
unicode2str
from
base64
import
b64encode
...
...
@@ -75,15 +74,15 @@ if not book_content:
return
book_aggregate_list
=
[]
book_revision
=
book
.
getRevision
()
book_modification_date
=
book
.
getModificationDate
()
book_modification_date
=
book
.
getEffectiveDate
()
or
book
.
getModificationDate
()
book_language
=
book
.
getLanguage
()
# XXX sigh for passing "" around
book_reference
=
html_quote
(
override_document_reference
)
if
override_document_reference
else
book
.
getReference
()
book_short_title
=
html_quote
(
override_document_short_title
)
if
override_document_short_title
else
book
.
getShortTitle
()
book_version
=
html_quote
(
override_document_version
)
if
override_document_version
else
book
.
getVersion
()
or
"001"
book_description
=
html_quote
(
override_document_description
)
if
override_document_description
else
book
.
getDescription
()
book_title
=
html_quote
(
override_document_title
)
if
override_document_title
else
book
.
getTitle
()
book_reference
=
override_document_reference
if
override_document_reference
else
book
.
getReference
()
book_short_title
=
override_document_short_title
if
override_document_short_title
else
book
.
getShortTitle
()
book_version
=
override_document_version
if
override_document_version
else
book
.
getVersion
()
or
"001"
book_description
=
override_document_description
if
override_document_description
else
book
.
getDescription
()
book_title
=
override_document_title
if
override_document_title
else
book
.
getTitle
()
if
six
.
PY2
and
isinstance
(
book_content
,
six
.
text_type
):
book_content
=
unicode2str
(
book_content
)
...
...
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