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
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
Léo-Paul Géneau
erp5
Commits
b1f36ffd
Commit
b1f36ffd
authored
3 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix pylint warnings
these ERP5 Python Scripts were not covered by coding style tests
parent
3304fe9b
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterClassTupleDiff.py
...rtal_skins/erp5_core/TemplateTool_filterClassTupleDiff.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterOOBTreeClassDiff.py
...al_skins/erp5_core/TemplateTool_filterOOBTreeClassDiff.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterPortalTypeClassDiff.py
...skins/erp5_core/TemplateTool_filterPortalTypeClassDiff.py
+2
-2
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterClassTupleDiff.py
View file @
b1f36ffd
...
...
@@ -3,6 +3,6 @@ if len(old_line_list) == 4 and len(new_line_list) == 1 and \
old_line_list
[
2
]
==
'<tuple/>'
and
\
old_line_list
[
3
]
==
'</tuple>'
and
\
old_line_list
[
1
]
==
new_line_list
[
0
]:
return
True
return
True
return
False
This diff is collapsed.
Click to expand it.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterOOBTreeClassDiff.py
View file @
b1f36ffd
if
len
(
old_line_list
)
==
1
and
len
(
new_line_list
)
==
1
and
\
new_line_list
[
0
]
==
old_line_list
[
0
].
replace
(
"BTrees._OOBTree"
,
"BTrees.OOBTree"
):
return
True
return
True
return
False
This diff is collapsed.
Click to expand it.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_filterPortalTypeClassDiff.py
View file @
b1f36ffd
...
...
@@ -6,12 +6,12 @@ new_group_list = new_line.split('"')
if
len
(
new_group_list
)
!=
5
:
return
False
before
,
portal_type
,
module
,
erp5_portal_type
,
after
=
new_group_list
before
,
_
,
module
,
erp5_portal_type
,
after
=
new_group_list
if
before
!=
'<global name='
or
module
!=
' module='
or
erp5_portal_type
!=
'erp5.portal_type'
or
after
!=
'/>'
:
return
False
old_group_list
=
old_line_list
[
0
].
split
(
'"'
)
if
len
(
old_group_list
)
==
5
:
before2
,
ignore
,
module2
,
products_erp5type
,
after2
=
old_group_list
before2
,
_
,
module2
,
products_erp5type
,
after2
=
old_group_list
return
before2
==
before
and
module2
==
module
and
products_erp5type
.
startswith
(
"Products.ERP5Type.Document."
)
and
after2
==
after
return
False
This diff is collapsed.
Click to expand it.
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