[CMF-checkins] CVS: CMF - MembershipTool.py:1.7

Jens Vagelpohl jens@digicool.com
Fri, 8 Jun 2001 08:25:31 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv19096

Modified Files:
	MembershipTool.py 
Log Message:
Added additional check in "addMember" to see if the home folder for the joining member already got created by the 
"create member area on first login" mechanism if it is enabled. (Tracker issue 307)




--- Updated File MembershipTool.py in package CMF --
--- MembershipTool.py	2001/05/11 03:41:43	1.6
+++ MembershipTool.py	2001/06/08 12:25:30	1.7
@@ -165,7 +165,10 @@
 
         if hasattr(self, 'Members'):
             # Create Member's home folder
-            manage_addPortalFolder(self.Members, id)
+            # but avoid collisions
+            if not hasattr(self.Members, id):
+                manage_addPortalFolder(self.Members, id)
+
             f=getattr(self.Members, id)
 
             f.manage_permission('View',