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
3759ad60
Commit
3759ad60
authored
Jun 12, 2000
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authenticated User interface API Documentation
parent
134d8bb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
lib/python/Products/OFSP/help/AuthenticatedUser.py
lib/python/Products/OFSP/help/AuthenticatedUser.py
+61
-0
No files found.
lib/python/Products/OFSP/help/AuthenticatedUser.py
0 → 100644
View file @
3759ad60
"""
Authenticated User
"""
class
AuthenticatedUser
:
"""
This interface needs to be supported by objects that
are returned by user validation and used for access control.
"""
def
getUserName
():
"""
Return the username of a user
Permission - Allways available
"""
def
hasRole
(
object
,
roles
):
"""
Return a value that is true if the user has the given roles on
the given object and return false otherwise.
Permission - Allways available
"""
def
getRoles
(
object
):
"""
Returns a list of the roles the user has on the given object
(in the current context?)
Permission - Allways available
"""
def
getId
():
"""
Get the ID of the user. The ID can be used, at least from
Python, to get the user from the user's UserDatabase.
Permission - Python only
"""
def
getDatabasePath
():
"""
Get a physical path to the user's UserDatabase. A Traversal
facility can be used to get the user database from the path
returned by this method.
Permission - Python only
"""
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