[CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.32

Yvo Schubbe schubbe@web.de
Fri, 14 Mar 2003 14:01:43 -0500


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12496/CMFDefault

Modified Files:
	MembershipTool.py 
Log Message:
Merged yuppie-collector140-branch:
- Fixed acquisition bug. (Collector #102)

=== CMF/CMFDefault/MembershipTool.py 1.31 => 1.32 ===
--- CMF/CMFDefault/MembershipTool.py:1.31	Fri Feb 21 06:39:15 2003
+++ CMF/CMFDefault/MembershipTool.py	Fri Mar 14 14:01:12 2003
@@ -180,7 +180,7 @@
         """ Create a member area for 'member_id'.
         """
         members = self.getMembersFolder()
-        if members is not None and not hasattr(members, member_id):
+        if members is not None and member_id not in members.objectIds():
             f_title = "%s's Home" % member_id
             members.manage_addPortalFolder( id=member_id, title=f_title )
             f=getattr(members, member_id)