[CMF-checkins] CVS: CMF - MembershipTool.py:1.10
Jens Vagelpohl
jens@digicool.com
Wed, 13 Jun 2001 14:02:15 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv21599
Modified Files:
MembershipTool.py
Log Message:
The user object retrieved in createMemberarea needed to be wrapped for subsequent calls in
the role / ownership machinery. unfortunately "getUser" on the user folder does not return a
wrapped user object so i had to wrap it "by hand".
--- Updated File MembershipTool.py in package CMF --
--- MembershipTool.py 2001/06/11 19:07:27 1.9
+++ MembershipTool.py 2001/06/13 18:02:14 1.10
@@ -174,7 +174,8 @@
f=getattr(members, member_id)
# Grant ownership to Member
- user = self.__getPUS().getUser(member_id)
+ acl_users = self.__getPUS()
+ user = acl_users.getUser(member_id).__of__(acl_users)
f.changeOwnership(user)
f.manage_setLocalRoles(member_id, ['Owner'])