Commit 89eec097 authored by Jérome Perrin's avatar Jérome Perrin

again, one use of context was left in r18137

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18223 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf645e53
......@@ -72,7 +72,8 @@ document = state_change[\'object\']\n
# XXX Wrong way to get email or even to send an email\n
PersonModule_viewPersonList = document.getClientValueList(portal_type="Person") # should become getDestinationSectionList()\n
email_list = map(lambda x:x.getDefaultEmailText(), PersonModule_viewPersonList)\n
document.MailHost.send(message, mto=email_list, mfrom=context.portal_preferences.getPreferredEventSenderEmail(),\n
document.MailHost.send(message, mto=email_list,\n
mfrom=document.portal_preferences.getPreferredEventSenderEmail(),\n
subject=string_subject)\n
</string> </value>
</item>
......@@ -125,7 +126,6 @@ document.MailHost.send(message, mto=email_list, mfrom=context.portal_preferences
<string>PersonModule_viewPersonList</string>
<string>map</string>
<string>email_list</string>
<string>context</string>
</tuple>
</value>
</item>
......
128
\ No newline at end of file
129
\ No newline at end of file
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