Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
5da539b1
Commit
5da539b1
authored
Jul 12, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: don't crash export if page does not exist
parent
9a74eb00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_embedLinkedDocumentList.py
...rp5_corporate_identity/WebPage_embedLinkedDocumentList.py
+1
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_embedLinkedDocumentList.py
View file @
5da539b1
...
@@ -21,7 +21,7 @@ for link in re.findall('([^[]<a.*?</a>[^]])', doc_content or blank):
...
@@ -21,7 +21,7 @@ for link in re.findall('([^[]<a.*?</a>[^]])', doc_content or blank):
link_doc
=
context
.
restrictedTraverse
(
link_reference
.
split
(
"?"
)[
0
])
link_doc
=
context
.
restrictedTraverse
(
link_reference
.
split
(
"?"
)[
0
])
doc_content
=
doc_content
.
replace
(
link
,
link_doc
.
asStrippedHTML
())
doc_content
=
doc_content
.
replace
(
link
,
link_doc
.
asStrippedHTML
())
except
LookupError
:
except
LookupError
:
raise
LookupError
(
link_reference
)
pass
doc_content
=
doc_content
.
replace
(
"${related_subject_list}"
,
blank
)
doc_content
=
doc_content
.
replace
(
"${related_subject_list}"
,
blank
)
doc_content
=
doc_content
.
replace
(
"${table_of_content"
,
blank
)
doc_content
=
doc_content
.
replace
(
"${table_of_content"
,
blank
)
...
...
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