Commit ab974b59 authored by Jérome Perrin's avatar Jérome Perrin

deferred_style: only support html notification

parent b5325817
......@@ -30,15 +30,9 @@ if prefs.getPreferredDeferredReportStoredAsDocument():
notification_mapping_dict = {
'report_link_list': report_url_text,
}
if notification_message.getContentType() == "text/html":
message = notification_message.asEntireHTML(
safe_substitute=False,
substitution_method_parameter_dict={'mapping_dict': notification_mapping_dict})
else:
message_text_format = "text/plain"
message = notification_message.asText(
safe_substitute=False,
substitution_method_parameter_dict={'mapping_dict': notification_mapping_dict})
portal.portal_notifications.activate(activity='SQLQueue').sendMessage(
recipient=user_name,
......
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