[CMF-checkins] CVS: CMF/CMFCore/interfaces -
portal_membership.py:1.9
Yvo Schubbe
schubbe at web.de
Mon Sep 29 07:20:09 EDT 2003
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv26179/CMFCore/interfaces
Modified Files:
portal_membership.py
Log Message:
fixed getCandidateLocalRoles:
- filter out 'Member' correctly (Collector #148 and #169)
- also filter out 'Authenticated'
changed permissions:
- protect user management methods by 'Manage users', not 'Manage portal'
updated interface and added Local Roles methods to it
=== CMF/CMFCore/interfaces/portal_membership.py 1.8 => 1.9 ===
--- CMF/CMFCore/interfaces/portal_membership.py:1.8 Wed Sep 24 06:02:14 2003
+++ CMF/CMFCore/interfaces/portal_membership.py Mon Sep 29 07:19:38 2003
@@ -99,7 +99,7 @@
"""
Returns the given member.
- Permission -- Manage portal
+ Permission -- Manage users
"""
def listMemberIds():
@@ -108,13 +108,33 @@
This may eventually be replaced with a set of methods for querying
pieces of the list rather than the entire list at once.
- Permission -- Manage portal
+ Permission -- Manage users
"""
def listMembers():
""" Gets the list of all members.
- Permission -- Manage portal
+ Permission -- Manage users
+ """
+
+ def getCandidateLocalRoles(obj):
+ """ What local roles can I assign?
+
+ Permission -- Always available
+
+ Returns -- Tuple of roles
+ """
+
+ def setLocalRoles(obj, member_ids, member_role, reindex=1):
+ """ Add local roles on an item.
+
+ Permission -- Always available
+ """
+
+ def deleteLocalRoles(obj, member_ids, reindex=1, recursive=0):
+ """ Delete local roles of specified members.
+
+ Permission -- Always available
"""
def addMember(id, password, roles, domains):
More information about the CMF-checkins
mailing list