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
0e61a20f
Commit
0e61a20f
authored
May 01, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/pylint: better stup for AccessControl.PermissionRole
parent
e257a150
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+6
-6
No files found.
product/ERP5Type/patches/pylint.py
View file @
0e61a20f
...
@@ -332,25 +332,25 @@ from astroid import register_module_extender
...
@@ -332,25 +332,25 @@ from astroid import register_module_extender
def
AccessControl_PermissionRole_transform
():
def
AccessControl_PermissionRole_transform
():
return
AstroidBuilder
(
MANAGER
).
string_build
(
'''
return
AstroidBuilder
(
MANAGER
).
string_build
(
'''
def rolesForPermissionOn(perm, object, default=_default_roles, n=None):
def rolesForPermissionOn(perm, object, default=_default_roles, n=None):
return
None
return
tuple()
class PermissionRole(object):
class PermissionRole(object):
def __init__(self, name, default=('Manager',)):
def __init__(self, name, default=('Manager',)):
return None
return None
def __of__(self, parent):
def __of__(self, parent):
return
None
return
imPermissionRole(self)
def rolesForPermissionOn(self, value):
def rolesForPermissionOn(self, value):
return
None
return
self.rolesForPermissionOn(None, self)
class imPermissionRole(object):
class imPermissionRole(object):
def __of__(self, value):
def __of__(self, value):
return
None
return
self.rolesForPermissionOn(None, self)
def rolesForPermissionOn(self, value):
def rolesForPermissionOn(self, value):
return
None
return
rolesForPermissionOn(None, self)
def __getitem__(self, i):
def __getitem__(self, i):
return None
return None
def __len__(self):
def __len__(self):
return
None
return
0
_what_not_even_god_should_do = []
_what_not_even_god_should_do = []
'''
)
'''
)
...
...
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