Take care of properly converting titles to unicode

svn path=/plone.app.discussion/branches/1.x/; revision=47999
This commit is contained in:
Patrick Gerken 2011-03-09 03:07:59 +00:00
parent de9ebea499
commit 882e9e028f

View File

@ -235,7 +235,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:
@ -302,7 +302,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)