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 ...@@ -72,7 +72,8 @@ document = state_change[\'object\']\n
# XXX Wrong way to get email or even to send an email\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 PersonModule_viewPersonList = document.getClientValueList(portal_type="Person") # should become getDestinationSectionList()\n
email_list = map(lambda x:x.getDefaultEmailText(), PersonModule_viewPersonList)\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 subject=string_subject)\n
</string> </value> </string> </value>
</item> </item>
...@@ -125,7 +126,6 @@ document.MailHost.send(message, mto=email_list, mfrom=context.portal_preferences ...@@ -125,7 +126,6 @@ document.MailHost.send(message, mto=email_list, mfrom=context.portal_preferences
<string>PersonModule_viewPersonList</string> <string>PersonModule_viewPersonList</string>
<string>map</string> <string>map</string>
<string>email_list</string> <string>email_list</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
128 129
\ No newline at end of file \ 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