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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
f40b2c66
Commit
f40b2c66
authored
Mar 31, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
km: fix pylint messages and enable coding style test
parent
dc2da7fd
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
13 deletions
+7
-13
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/Base_getWorkflowEventInfoAsDocumentList.py
..._skins/erp5_km/Base_getWorkflowEventInfoAsDocumentList.py
+0
-1
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/ERP5Type_getSecurityCategoryFromMembershipCriterion.py
...km/ERP5Type_getSecurityCategoryFromMembershipCriterion.py
+3
-3
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/ERP5Type_getSecurityCategoryFromMembershipCriterion.xml
...m/ERP5Type_getSecurityCategoryFromMembershipCriterion.xml
+1
-1
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_createWebSiteAccount.py
...Item/portal_skins/erp5_km/WebSite_createWebSiteAccount.py
+1
-3
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_getWorklistSettingsFor.py
...em/portal_skins/erp5_km/WebSite_getWorklistSettingsFor.py
+1
-1
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_getRelatedDocumentListByRelationIdList.xml
...brary/Document_getRelatedDocumentListByRelationIdList.xml
+1
-1
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSite_viewDocumentRender.py
...kins/erp5_km_widget_library/WebSite_viewDocumentRender.py
+0
-2
bt5/erp5_km/bt/skip_coding_style_test
bt5/erp5_km/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/Base_getWorkflowEventInfoAsDocumentList.py
View file @
f40b2c66
from
Products.ERP5Type.Document
import
newTempBase
request
=
context
.
REQUEST
portal
=
context
.
getPortalObject
()
# we can use current_web_document in case it's "embedded" into a Web Section
document
=
request
.
get
(
'current_web_document'
,
context
)
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/ERP5Type_getSecurityCategoryFromMembershipCriterion.py
View file @
f40b2c66
...
...
@@ -12,16 +12,16 @@ The parameters are
base_category_list -- list of acceptable base categories
(used to filter part of the criteria)
user_name -- the user identifier (not used)
obj
ect
-- object which we want to assign roles to
obj
-- object which we want to assign roles to
portal_type -- portal type of object
"""
category_list
=
[]
if
obj
ect
is
None
:
if
obj
is
None
:
return
[]
criterion_list
=
obj
ect
.
getMembershipCriterionCategoryList
()
criterion_list
=
obj
.
getMembershipCriterionCategoryList
()
for
criterion
in
criterion_list
:
id_list
=
criterion
.
split
(
'/'
)
base_category
=
id_list
[
0
]
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/ERP5Type_getSecurityCategoryFromMembershipCriterion.xml
View file @
f40b2c66
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
base_category_list, user_name, obj
ect
, portal_type
</string>
</value>
<value>
<string>
base_category_list, user_name, obj, portal_type
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_createWebSiteAccount.py
View file @
f40b2c66
"""
Create basic KM account using ERP5 credentials system.
"""
from
Products.Formulator.Errors
import
ValidationError
,
FormValidationError
portal
=
context
.
getPortalObject
()
translateString
=
context
.
Base_translateString
website
=
context
.
getWebSiteValue
()
...
...
@@ -12,7 +10,7 @@ result, result_type = context.Base_edit(form_id, silent_mode=1, field_prefix='yo
# Return if not appropriate
if
result_type
!=
'edit'
:
return
result
kw
,
encapsulated_editor_list
=
result
kw
,
_
=
result
# XXX: hard coded due to erp5_credentials requirement
kw
[
'role_list'
]
=
[
'internal'
]
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km/WebSite_getWorklistSettingsFor.py
View file @
f40b2c66
...
...
@@ -10,7 +10,7 @@ kw = {}
try
:
workflow_tool
=
context
.
portal_workflow
workflow
=
getattr
(
workflow_tool
,
action
[
'workflow_id'
])
except
:
except
AttributeError
:
return
{}
# If this is a worklist action, read the worklist definition
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/Document_getRelatedDocumentListByRelationIdList.xml
View file @
f40b2c66
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
relation_id_list=
[],
**kw
</string>
</value>
<value>
<string>
relation_id_list=
(),
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_widget_library/WebSite_viewDocumentRender.py
View file @
f40b2c66
"""
Returns a document by its reference in a gadget.
"""
request
=
context
.
REQUEST
portal
=
context
.
getPortalObject
()
if
box_relative_url
:
...
...
bt5/erp5_km/bt/skip_coding_style_test
deleted
100644 → 0
View file @
dc2da7fd
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