[CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.33
Yvo Schubbe
schubbe@web.de
Fri, 14 Mar 2003 14:29:20 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv16145/CMFDefault
Modified Files:
MembershipTool.py
Log Message:
Fixed fix:
- Avoid use of objectIds here.
=== CMF/CMFDefault/MembershipTool.py 1.32 => 1.33 ===
--- CMF/CMFDefault/MembershipTool.py:1.32 Fri Mar 14 14:01:12 2003
+++ CMF/CMFDefault/MembershipTool.py Fri Mar 14 14:28:49 2003
@@ -16,6 +16,7 @@
"""
from AccessControl import ClassSecurityInfo
+from Acquisition import aq_base
from Acquisition import aq_inner
from Acquisition import aq_parent
from Globals import DTMLFile
@@ -180,7 +181,7 @@
""" Create a member area for 'member_id'.
"""
members = self.getMembersFolder()
- if members is not None and member_id not in members.objectIds():
+ if members is not None and not hasattr( aq_base(members), member_id ):
f_title = "%s's Home" % member_id
members.manage_addPortalFolder( id=member_id, title=f_title )
f=getattr(members, member_id)