Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
79aa7760
Commit
79aa7760
authored
Oct 19, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_ci_slideshow: fix no related object raises on WebPage_viewAsWeb
parent
4a1e76ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
...eItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
+3
-2
No files found.
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
View file @
79aa7760
...
...
@@ -60,8 +60,9 @@ def getThemeFromFirstFollowUpProduct(reference):
if
category
.
find
(
product_match_string
)
>
1
:
relative_url
=
category
.
split
(
"follow_up/"
)[
1
]
category_object
=
portal
.
portal_catalog
(
relative_url
=
relative_url
,
limit
=
1
)
category_title
=
category_object
[
0
].
getTitle
()
theme
=
category_title
.
split
(
software_match_string
)[
0
].
lower
()
if
len
(
category_object
)
>
0
:
category_title
=
category_object
[
0
].
getTitle
()
theme
=
category_title
.
split
(
software_match_string
)[
0
].
lower
()
# OSOE extra handle
# XXX this should be relative to the website the presentation is being
...
...
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