Membership Tool
May be somewhat out of date (moved from cmf.zope.org, where it was dated 2000/11/01).
Purpose
Deals with the details of how and where to store and retrieve members and their member folders.
Anonymous permission
-
getAuthenticatedMember(self)
- Returns a PortalMember object corresponding to the authenticated user.
-
isAnonymousUser(self)
- Returns 1 if the user is not logged in, otherwise 0.
-
checkPermission(self, permissionName, object)
- Checks whether the authenticated user has the named permission on the given object. Does not raise an exception.
-
credentialsChanged(self, password)
- Notifies the authentication mechanism that the authenticated user has changed passwords. This can be used to update the authentication cookie. Note that this call should not cause any change at all to user databases.
-
getHomeFolder(self, id)
- Returns a member's home folder object (if any).
-
getHomeUrl(self, id)
- Returns the URL to a member's home folde (if any).
"Manage portal" permission
-
getMemberById(self, id)
- Returns the PortalMember object with the given id.
-
listMemberIds(self)
- Lists the id's of all members. This may eventually be replaced with a set of methods for querying pieces of the list rather than the entire list at once.
-
listMembers(self)
- Gets the list of all members.
No permission (called only by Python)
-
addMember(self, id, password, roles, domains)
- Adds the given member. Security checks will have already been performed.
-
listActions(self, isAnonymous, portal_url)
- Returns a list of actions available to the user.