Commit e38e4047 authored by Gabriel Monnerat's avatar Gabriel Monnerat

clean up the code

parent 4f19c7c3
......@@ -64,17 +64,11 @@ notification_message = portal.notification_message_module.NotificationTool_getDo
language=language)\n
assert notification_message is not None, "%s not found." % resource_reference\n
\n
mapping_dict = context.Entity_getDefaultSubstitutionDictFromEvent()\n
if notification_message.getContentType() == "text/html":\n
mail_text = notification_message.asEntireHTML(substitution_method_parameter_dict={\'mapping_dict\':mapping_dict})\n
else:\n
mail_text = notification_message.asText(substitution_method_parameter_dict={\'mapping_dict\':mapping_dict})\n
\n
event = context.Base_addEvent(title=notification_message.getTitle(),\n
event = context.Base_addEvent(title=\'\',\n
direction=\'outgoing\',\n
portal_type=event_portal_type,\n
resource=notification_message.getSpecialise(),\n
text_content=mail_text,\n
notification_message=resource_reference,\n
keep_draft=keep_draft,\n
batch_mode=True)\n
\n
......
625
\ No newline at end of file
626
\ 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