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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
a80099b4
Commit
a80099b4
authored
Jul 09, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Security.ERP5GroupManager: Get rid of try..finally: pass block.
parent
7a3a0a4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
76 deletions
+73
-76
product/ERP5Security/ERP5GroupManager.py
product/ERP5Security/ERP5GroupManager.py
+73
-76
No files found.
product/ERP5Security/ERP5GroupManager.py
View file @
a80099b4
...
@@ -93,7 +93,6 @@ class ERP5GroupManager(BasePlugin):
...
@@ -93,7 +93,6 @@ class ERP5GroupManager(BasePlugin):
security_group_list
=
[]
security_group_list
=
[]
security_definition_list
=
()
security_definition_list
=
()
try
:
# To get the complete list of groups, we try to call the
# To get the complete list of groups, we try to call the
# ERP5Type_getSecurityCategoryMapping which should return a list
# ERP5Type_getSecurityCategoryMapping which should return a list
# of lists of two elements (script, base_category_list) like :
# of lists of two elements (script, base_category_list) like :
...
@@ -173,8 +172,6 @@ class ERP5GroupManager(BasePlugin):
...
@@ -173,8 +172,6 @@ class ERP5GroupManager(BasePlugin):
'could not get security groups from %s'
%
'could not get security groups from %s'
%
generator_name
,
generator_name
,
error
=
sys
.
exc_info
())
error
=
sys
.
exc_info
())
finally
:
pass
return
tuple
(
security_group_list
)
return
tuple
(
security_group_list
)
if
not
NO_CACHE_MODE
:
if
not
NO_CACHE_MODE
:
...
...
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