[Erp5-report] r23553 - /erp5/trunk/products/ERP5/Tool/NotificationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 10 16:42:21 CEST 2008
Author: nicolas
Date: Wed Sep 10 16:42:17 2008
New Revision: 23553
URL: http://svn.erp5.org?rev=23553&view=rev
Log:
change only variable name
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=23553&r1=23552&r2=23553&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py Wed Sep 10 16:42:17 2008
@@ -289,13 +289,13 @@
if recipient:
if not isinstance(recipient, (list, tuple)):
recipient = (recipient,)
- for person in recipient:
- if isinstance(person, basestring):
+ for person_reference in recipient:
+ if isinstance(person_reference, basestring):
person = catalog_tool.getResultValue(portal_type=portal_type_list,
- reference=person)
+ reference=person_reference)
if person is None:
# For backward compatibility. I recommend to use ValueError.(yusei)
- raise IndexError, "Can't find person document which reference is '%s'" % person
+ raise IndexError, "Can't find person document which reference is '%s'" % person_reference
email_value = person.getDefaultEmailValue()
if email_value is None:
# For backward compatibility. I recommend to use ValueError.(yusei)
More information about the Erp5-report
mailing list