[CMF-checkins] CVS: CMF/CMFCore - MembershipTool.py:1.33.2.1
Yvo Schubbe
schubbe@web.de
Tue, 27 May 2003 13:23:20 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14416/CMFCore
Modified Files:
Tag: yuppie-collector162-branch
MembershipTool.py
Log Message:
- fixed Ownership and Owner role (Collector #162)
- added tests
=== CMF/CMFCore/MembershipTool.py 1.33 => 1.33.2.1 ===
--- CMF/CMFCore/MembershipTool.py:1.33 Fri May 9 11:04:18 2003
+++ CMF/CMFCore/MembershipTool.py Tue May 27 13:22:50 2003
@@ -263,11 +263,10 @@
f.manage_permission(AccessContentsInformation,
['Owner','Manager','Reviewer'], 0)
- # Grant ownership to Member
- try: f.changeOwnership(user)
- except AttributeError: pass # Zope 2.1.x compatibility
+ # Grant Ownership and Owner role to Member
+ f.changeOwnership(user)
+ f.__ac_local_roles__ = None
f.manage_setLocalRoles(member_id, ['Owner'])
-
security.declarePublic('isAnonymousUser')
def isAnonymousUser(self):