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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
a093355c
Commit
a093355c
authored
Mar 31, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ods_style: fix pylint messages and enable coding style test
parent
21c0c204
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
24 deletions
+4
-24
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_style/Base_getDynamicODSStyleSheet.py
...rtal_skins/erp5_ods_style/Base_getDynamicODSStyleSheet.py
+4
-23
bt5/erp5_ods_style/bt/skip_coding_style_test
bt5/erp5_ods_style/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_style/Base_getDynamicODSStyleSheet.py
View file @
a093355c
from
Products.ERP5Type.Message
import
Message
# XXX for now, we always use the default Base_getODSStyleSheet
# XXX for now, we always use the default Base_getODSStyleSheet
# we use to have Base_getODSListStyleSheet with a line at the bottom of
# we use to have Base_getODSListStyleSheet with a line at the bottom of
# the page, for better print display. Now we rather agreed that
# the page, for better print display and also Base_getODSStyleSheetLandscape
# ods_style is a style for export, not report and the rendering appearance
# when landscape mode is used.
# was not so important.
# Now we rather agreed that ods_style is a style for export, not report and
# the rendering appearance was not so important.
return
context
.
Base_getODSStyleSheet
return
context
.
Base_getODSStyleSheet
translate
=
lambda
msg
:
Message
(
'ui'
,
msg
)
request
=
context
.
REQUEST
landscape
=
int
(
request
.
get
(
'landscape'
,
0
))
if
context
.
pt
!=
'form_list'
:
if
landscape
==
1
:
#normal style sheet with preview of landscape
return
context
.
Base_getODSStyleSheetLandscape
else
:
#preview portrait(Default)
return
context
.
Base_getODSStyleSheet
else
:
if
landscape
==
1
:
#style sheet for list, there is under line in preview
return
context
.
Base_getODSListStyleSheetLandscape
else
:
#preview portrait(Default)
return
context
.
Base_getODSListStyleSheet
bt5/erp5_ods_style/bt/skip_coding_style_test
deleted
100644 → 0
View file @
21c0c204
1
\ No newline at end of file
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