[Erp5-report] r19158 - /erp5/trunk/products/ERP5/Tool/NotificationTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 8 10:56:28 CET 2008


Author: romain
Date: Fri Feb  8 10:56:28 2008
New Revision: 19158

URL: http://svn.erp5.org?rev=19158&view=rev
Log:
Recipient parameter may be a Person object

Modified:
    erp5/trunk/products/ERP5/Tool/NotificationTool.py

Modified: erp5/trunk/products/ERP5/Tool/NotificationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/NotificationTool.py?rev=19158&r1=19157&r2=19158&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py Fri Feb  8 10:56:28 2008
@@ -182,7 +182,7 @@
       email_from_address = default_email
 
     # To is a list - let us find all members
-    if isinstance(recipient, basestring):
+    if not isinstance(recipient, (list, tuple)):
       recipient = (recipient, )
 
     # If no recipient is defined, just send an email to the




More information about the Erp5-report mailing list