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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
83af33d7
Commit
83af33d7
authored
Oct 22, 2019
by
Bryton Lacquement
🚪
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: support unobtainable creation dates (= None)
parent
68a48fa2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
...al_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
...al_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
..._skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
+2
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLeaflet.py
View file @
83af33d7
...
...
@@ -56,8 +56,8 @@ leaflet_title = leaflet.getTitle()
leaflet_relative_url
=
leaflet
.
getRelativeUrl
()
leaflet_language
=
leaflet
.
getLanguage
()
leaflet_creation_date
=
leaflet
.
getCreationDate
()
leaflet_date
=
leaflet_creation_date
.
strftime
(
'%Y-%b'
)
leaflet_year
=
leaflet_creation_date
.
strftime
(
'%Y'
)
leaflet_date
=
leaflet_creation_date
.
strftime
(
'%Y-%b'
)
if
leaflet_creation_date
else
blank
leaflet_year
=
leaflet_creation_date
.
strftime
(
'%Y'
)
if
leaflet_creation_date
else
blank
leaflet_reference
=
leaflet
.
getReference
()
leaflet_version
=
leaflet
.
getVersion
()
or
"001"
leaflet_aggregate_list
=
[]
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsRelease.py
View file @
83af33d7
...
...
@@ -60,7 +60,7 @@ release_creation_date = release.getCreationDate()
release_modification_date
=
release
.
getModificationDate
()
release_aggregate_list
=
[]
release_relative_url
=
release
.
getRelativeUrl
()
release_creation_year
=
release_creation_date
.
strftime
(
'%Y'
)
release_creation_year
=
release_creation_date
.
strftime
(
'%Y'
)
if
release_creation_date
else
blank
#release_creation_month = release_creation_date.strftime('%b')
#release_date = ''.join([release_creation_month, "-", release_creation_year])
release_reference
=
release
.
getReference
()
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
View file @
83af33d7
...
...
@@ -201,7 +201,8 @@ doc_content = removeEmptyDetails(doc_dirty_content)
doc_title
=
doc
.
getShortTitle
()
or
doc
.
getTitle
()
doc_language
=
doc
.
getLanguage
()
doc_description
=
doc
.
getDescription
()
doc_creation_year
=
doc
.
getCreationDate
().
strftime
(
'%Y'
)
doc_creation_date
=
doc
.
getCreationDate
()
doc_creation_year
=
doc_creation_date
.
strftime
(
'%Y'
)
if
doc_creation_date
else
blank
doc_version
=
doc
.
getVersion
()
or
"001"
doc_reference
=
doc
.
getReference
()
doc_relative_url
=
doc
.
getRelativeUrl
()
...
...
Bryton Lacquement
🚪
@bminusl
·
Oct 23, 2019
For cross-reference, this is from
!970 (merged)
.
For cross-reference, this is from !970.
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