Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
d47cff76
Commit
d47cff76
authored
Mar 14, 2000
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fergotto check one in...
parent
deace362
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
0 deletions
+98
-0
lib/python/AccessControl/RoleManagerInterface.py
lib/python/AccessControl/RoleManagerInterface.py
+98
-0
No files found.
lib/python/AccessControl/RoleManagerInterface.py
0 → 100644
View file @
d47cff76
from
Zope.Interfaces.Interface
import
Interface
class
RoleManager
:
"""
Description of the RoleManager interface
"""
def
ac_inherited_permissions
(
self
,
all
=
0
):
"""
Get all permissions not defined in ourself that are inherited.
Returns a sequence of tuples with a name as the first item an
an empty tuple as the second.
"""
def
permission_settings
(
self
):
"""
Return user-role permission settings.
"""
def
permissionsOfRole
(
self
,
role
):
"""
Return the permissions that this Role maps to.
"""
def
rolesOfPermission
(
self
,
permission
):
"""
Returns roles that have 'permission'.
"""
def
acquiredRolesAreUsedBy
(
self
,
permission
):
"""
I have no idea.
"""
def
has_local_roles
(
self
):
"""
Returns the number of local roles for 'self', otherwiser
returns a false value.
"""
def
get_local_roles
(
self
):
"""
Returns a sequence of local roles for 'self'.
"""
def
get_valid_userids
(
self
):
"""
who knows.
"""
def
get_local_roles_for_userid
(
self
,
userid
):
"""
who knows.
"""
def
valid_roles
(
self
):
"""
Returns a list of valid roles.
"""
def
validate_roles
(
self
,
roles
):
"""
Returns a true value if all given roles are valid.
"""
def
userdefined_roles
(
self
):
"""
Returns a list of user defined roles.
"""
RoleManagerInterface
=
Interface
(
RoleManager
)
# create the interface object
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