[CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.35.2.2
Yvo Schubbe
schubbe@web.de
Mon, 2 Jun 2003 04:44:10 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv321/CMFDefault
Modified Files:
Tag: yuppie-createMemberarea-branch
MembershipTool.py
Log Message:
- synched CMFCore with CMFDefault createMemberarea
- removed unused default_member_content
- some whitespace cleanup
=== CMF/CMFDefault/MembershipTool.py 1.35.2.1 => 1.35.2.2 ===
--- CMF/CMFDefault/MembershipTool.py:1.35.2.1 Thu May 29 10:39:58 2003
+++ CMF/CMFDefault/MembershipTool.py Mon Jun 2 04:44:10 2003
@@ -150,7 +150,7 @@
security.declareProtected( ListPortalMembers, 'getRoster' )
def getRoster(self):
""" Return a list of mappings for 'listed' members.
-
+
If Manager, return a list of all usernames. The mapping
contains the id and listed variables.
"""
@@ -178,7 +178,7 @@
security.declarePublic('createMemberarea')
def createMemberarea(self, member_id=''):
- """ Create a member area for 'member_id'.
+ """ Create a member area for 'member_id' or authenticated user.
"""
if not self.getMemberareaCreationFlag():
return None
@@ -200,7 +200,7 @@
if member:
member = member.__of__(self.acl_users)
else:
- return None
+ raise ValueError, 'Member %s does not exist' % member_id
else:
return None
if hasattr( aq_base(members), member_id ):