add footer to task emails (#6120)

This commit is contained in:
Frédéric Péters 2014-12-09 07:39:32 +01:00
parent 34fa5e1b5f
commit 62daf850c8
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,7 @@ def email_notification_of_tasks_sync(context, event, document, absolute_url, tar
if context.note:
body += translate(_('Note:'), **kwargs) + '\n\n' + context.note
body += '\n\n\n-- \n' + translate(_('Sent by GED'), **kwargs)
body = body.encode('utf-8')
log.info('sending notifications to %r' % context.responsible)
@ -413,6 +414,7 @@ def email_notification_of_refused_task(context, event):
# comment less than two minutes ago, include it.
body += translate(_('Note:'), context=context.REQUEST) + '\n\n' + last_comment.text
body += '\n\n\n-- \n' + translate(_('Sent by GED'), **kwargs)
body = body.encode('utf-8')
try: