From 79701cce7e90bb32b45bb28bfcb5560d0bd531ae Mon Sep 17 00:00:00 2001 From: Patrick Gerken Date: Tue, 8 Mar 2011 20:15:52 +0000 Subject: [PATCH] Take care of properly converting titles to unicode svn path=/plone.app.discussion/trunk/; revision=47991 --- plone/app/discussion/comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index f167a1d..1082c88 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -225,7 +225,7 @@ def notify_user(obj, event): context=obj.REQUEST) message = translate(Message( MAIL_NOTIFICATION_MESSAGE, - mapping={'title': content_object.title, + mapping={'title': safe_unicode(content_object.title), 'link': content_object.absolute_url()}), context=obj.REQUEST) for email in emails: @@ -279,7 +279,7 @@ def notify_moderator(obj, event): #comment = conversation.getComments().next() subject = translate(_(u"A comment has been posted."), context=obj.REQUEST) message = translate(Message(MAIL_NOTIFICATION_MESSAGE, - mapping={'title': content_object.title, + mapping={'title': safe_unicode(content_object.title), 'link': content_object.absolute_url()}), context=obj.REQUEST)