[CMF-checkins] CVS: CMF/CMFCollector - util.py:1.18

Ken Manheimer klm@zope.com
Mon, 26 Aug 2002 11:15:51 -0400


Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv7557

Modified Files:
	util.py 
Log Message:
Use 'safeGetProperty()', created specifically for compatability with
various versions of the user folder.


=== CMF/CMFCollector/util.py 1.17 => 1.18 ===
--- CMF/CMFCollector/util.py:1.17	Mon Aug 26 10:59:46 2002
+++ CMF/CMFCollector/util.py	Mon Aug 26 11:15:51 2002
@@ -56,8 +56,8 @@
     mbrtool = getToolByName(self, 'portal_membership')
     user = mbrtool.getMemberById(userid)
     if user is not None:
-        email = user.getProperty('email', None)
-        name = user.getProperty('full_name', str(user))
+        email = safeGetProperty(user, 'email', None)
+        name = safeGetProperty(user, 'full_name', str(user))
         if '.' in name or ',' in name:
             name = '"%s"' % name
         return (name, email)