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
138
Merge Requests
138
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
ddbdb7f8
Commit
ddbdb7f8
authored
Mar 16, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ingestion: fix pylint messages and enable coding style test
parent
1e876ac5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.py
...mplateItem/portal_skins/erp5_ingestion/Base_contribute.py
+2
-0
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getPropertyDictFromFilename.py
...ingestion/ContributionTool_getPropertyDictFromFilename.py
+1
-1
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getAutorizedTargetFormatItemList.py
...p5_ingestion/Document_getAutorizedTargetFormatItemList.py
+5
-6
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_isTargetFormatPermitted.py
..._skins/erp5_ingestion/Document_isTargetFormatPermitted.py
+3
-1
bt5/erp5_ingestion/bt/skip_coding_style_test
bt5/erp5_ingestion/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Base_contribute.py
View file @
ddbdb7f8
# This script uses file= argument
# pylint: disable=redefined-builtin
"""
"""
Use to contribute file to ERP5.
Use to contribute file to ERP5.
"""
"""
...
...
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/ContributionTool_getPropertyDictFromFilename.py
View file @
ddbdb7f8
...
@@ -88,7 +88,7 @@ elif group_reference_path:
...
@@ -88,7 +88,7 @@ elif group_reference_path:
if
category
is
None
:
if
category
is
None
:
break
break
if
category
is
not
None
:
if
category
is
not
None
:
new_dict
[
'group'
]
=
'/'
.
join
(
category
.
getRelativeUrl
().
split
(
'/'
)[
1
:])
new_dict
[
'group'
]
=
'/'
.
join
(
category
.
getRelativeUrl
().
split
(
'/'
)[
1
:])
else
:
else
:
...
...
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getAutorizedTargetFormatItemList.py
View file @
ddbdb7f8
autorized_format_list
=
[]
autorized_format_item_list
=
[]
format_list
=
context
.
getTargetFormatItemList
()
for
format_item_list
in
context
.
getTargetFormatItemList
():
for
format
in
format_list
:
if
context
.
Document_isTargetFormatPermitted
(
format_item_list
[
1
]):
if
context
.
Document_isTargetFormatPermitted
(
format
[
1
]):
autorized_format_item_list
.
append
(
format_item_list
)
autorized_format_list
.
append
(
format
)
return
autorized_format_item_list
return
autorized_format_list
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_isTargetFormatPermitted.py
View file @
ddbdb7f8
# This script uses file= argument
# pylint: disable=redefined-builtin
"""
"""
This script provides a facility to permit conversion by format.
This script provides a facility to permit conversion by format.
"""
"""
...
@@ -25,7 +27,7 @@ if format in ('html', 'stripped-html', 'text', 'txt', 'pdf', 'png', 'jpg', 'gif'
...
@@ -25,7 +27,7 @@ if format in ('html', 'stripped-html', 'text', 'txt', 'pdf', 'png', 'jpg', 'gif'
if
format
.
endswith
(
'pdf'
):
if
format
.
endswith
(
'pdf'
):
return
True
return
True
if
format
.
endswith
(
'html'
):
if
format
.
endswith
(
'html'
):
return
True
return
True
##
##
## # All other formats are prohibitted
## # All other formats are prohibitted
return
False
return
False
bt5/erp5_ingestion/bt/skip_coding_style_test
deleted
100644 → 0
View file @
1e876ac5
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