Commit e66e0c51 authored by Nicolas Delaby's avatar Nicolas Delaby

change only variable name

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2fa8524
......@@ -289,13 +289,13 @@ class NotificationTool(BaseTool):
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment