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
Carlos Ramos Carreño
erp5
Commits
c3c18992
Commit
c3c18992
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
94b7c42c
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 @
c3c18992
...
@@ -342,25 +342,25 @@ from astroid import register_module_extender
...
@@ -342,25 +342,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