[Erp5-report] r19221 - /erp5/trunk/products/ERP5/Tool/NotificationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 11 11:01:53 CET 2008
Author: romain
Date: Mon Feb 11 11:01:51 2008
New Revision: 19221
URL: http://svn.erp5.org?rev=19221&view=rev
Log:
email_to_address property does not exist on portal by default, so, keep
compatibility with existing site.
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=19221&r1=19220&r2=19221&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py Mon Feb 11 11:01:51 2008
@@ -166,7 +166,8 @@
# Default Values
portal = self.getPortalObject()
default_from_email = portal.email_from_address
- default_to_email = portal.email_to_address
+ default_to_email = getattr(portal, 'email_to_address',
+ default_from_email)
# Change all strings to object values
if isinstance(sender, basestring):
More information about the Erp5-report
mailing list