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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a8871500
Commit
a8871500
authored
Feb 19, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deferred_style: Fix pylint warnings and enable coding style
parent
c0f9e579
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style/Base_activateSimpleView.py
...rtal_skins/erp5_deferred_style/Base_activateSimpleView.py
+2
-2
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_activateReport.py
...tal_skins/erp5_deferred_style_core/Base_activateReport.py
+2
-2
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.py
...ins/erp5_deferred_style_core/Base_computeReportSection.py
+1
-0
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_renderReportSection.py
...kins/erp5_deferred_style_core/Base_renderReportSection.py
+0
-1
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.py
...Item/portal_skins/erp5_deferred_style_core/Base_report.py
+1
-1
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/ERP5Site_notifyReportComplete.py
...erp5_deferred_style_core/ERP5Site_notifyReportComplete.py
+1
-0
bt5/erp5_deferred_style/bt/skip_coding_style_test
bt5/erp5_deferred_style/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style/Base_activateSimpleView.py
View file @
a8871500
from
Products.ERP5Type.Message
import
translateString
from
Products.ERP5Type.Message
import
translateString
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
request
=
portal
.
REQUEST
request
=
portal
.
REQUEST
format
=
request
.
get
(
'format'
,
''
)
format
_
=
request
.
get
(
'format'
,
''
)
skin_name
=
request
.
get
(
'deferred_portal_skin'
,
portal
.
portal_skins
.
getDefaultSkin
())
skin_name
=
request
.
get
(
'deferred_portal_skin'
,
portal
.
portal_skins
.
getDefaultSkin
())
previous_skin_selection
=
request
.
get
(
'previous_skin_selection'
,
None
)
previous_skin_selection
=
request
.
get
(
'previous_skin_selection'
,
None
)
...
@@ -43,7 +43,7 @@ if hasattr(form, 'ZScriptHTML_tryParams'):
...
@@ -43,7 +43,7 @@ if hasattr(form, 'ZScriptHTML_tryParams'):
for
param
in
form
.
ZScriptHTML_tryParams
():
for
param
in
form
.
ZScriptHTML_tryParams
():
params
[
param
]
=
request
.
get
(
param
)
params
[
param
]
=
request
.
get
(
param
)
else
:
else
:
params
[
'format'
]
=
format
params
[
'format'
]
=
format
_
activity_context
.
activate
(
activity_context
.
activate
(
activity
=
'SQLQueue'
,
tag
=
tag
,
priority
=
priority
).
Base_renderSimpleView
(
activity
=
'SQLQueue'
,
tag
=
tag
,
priority
=
priority
).
Base_renderSimpleView
(
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_activateReport.py
View file @
a8871500
...
@@ -20,7 +20,7 @@ if person_value.getDefaultEmailText('') in ('', None):
...
@@ -20,7 +20,7 @@ if person_value.getDefaultEmailText('') in ('', None):
tag
=
'active-report-%s'
%
random
.
randint
(
0
,
1000
)
tag
=
'active-report-%s'
%
random
.
randint
(
0
,
1000
)
priority
=
2
priority
=
2
format
=
request
.
get
(
'format'
,
''
)
format
_
=
request
.
get
(
'format'
,
''
)
skin_name
=
request
[
'deferred_portal_skin'
]
skin_name
=
request
[
'deferred_portal_skin'
]
# save request parameters (after calling the report_method which may tweak the
# save request parameters (after calling the report_method which may tweak the
...
@@ -36,7 +36,7 @@ context.activate(activity="SQLQueue", tag=tag, after_tag=after_tag,
...
@@ -36,7 +36,7 @@ context.activate(activity="SQLQueue", tag=tag, after_tag=after_tag,
user_name
=
user
.
getId
(),
user_name
=
user
.
getId
(),
tag
=
tag
,
tag
=
tag
,
skin_name
=
skin_name
,
skin_name
=
skin_name
,
format
=
format
,
format
=
format
_
,
priority
=
priority
,
priority
=
priority
,
localizer_language
=
localizer_language
,
localizer_language
=
localizer_language
,
**
kw
)
**
kw
)
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.py
View file @
a8871500
# pylint: disable=redefined-builtin
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
form
=
context
.
restrictedTraverse
(
form
)
form
=
context
.
restrictedTraverse
(
form
)
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_renderReportSection.py
View file @
a8871500
...
@@ -16,7 +16,6 @@ with portal.Localizer.translationContext(localizer_language):
...
@@ -16,7 +16,6 @@ with portal.Localizer.translationContext(localizer_language):
else
:
else
:
form
=
None
form
=
None
selection_name
=
request
.
get
(
'prefixed_selection_name'
)
data
=
context
.
render_report_section
.
pt_render
(
data
=
context
.
render_report_section
.
pt_render
(
extra_context
=
dict
(
form
=
form
,
extra_context
=
dict
(
form
=
form
,
first
=
report_section_idx
==
0
,
first
=
report_section_idx
==
0
,
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.py
View file @
a8871500
from
Products.ERP5Type.Message
import
translateString
# pylint: disable=redefined-builtin
request
=
container
.
REQUEST
request
=
container
.
REQUEST
request
.
other
.
update
(
request_other
)
request
.
other
.
update
(
request_other
)
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/ERP5Site_notifyReportComplete.py
View file @
a8871500
# pylint: disable=redefined-builtin
from
Products.PythonScripts.standard
import
newline_to_br
,
html_quote
from
Products.PythonScripts.standard
import
newline_to_br
,
html_quote
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
prefs
=
portal
.
portal_preferences
prefs
=
portal
.
portal_preferences
...
...
bt5/erp5_deferred_style/bt/skip_coding_style_test
deleted
100644 → 0
View file @
c0f9e579
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