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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
1519d81a
Commit
1519d81a
authored
Oct 22, 2019
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_ci_slideshow: support unobtainable creation dates (= None)
parent
83af33d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
...eItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
+2
-1
No files found.
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
View file @
1519d81a
...
...
@@ -87,7 +87,8 @@ document_content = removeEmptyDetails(document.getTextContent())
document_theme
=
getThemeFromFirstFollowUpProduct
(
document_reference
)
document_title
=
document
.
getTitle
()
document_description
=
document
.
getDescription
()
document_creation_year
=
document
.
getCreationDate
().
strftime
(
'%Y'
)
document_creation_date
=
doc
.
getCreationDate
()
document_creation_year
=
document_creation_date
.
strftime
(
'%Y'
)
if
document_creation_date
else
''
document_theme_logo_url
=
"NXD-Media.Logo."
+
document_theme
.
capitalize
()
document_theme_logo
=
context
.
restrictedTraverse
(
document_theme_logo_url
)
document_claim
=
document_theme_logo
.
getDescription
()
...
...
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