Ignore:
Timestamp:
Aug 16, 2010 11:35:44 AM (14 years ago)
Author:
kroman0
Message:

Fixed issue #7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/utils.py

    r2137 r2753  
    44_ = MessageFactory("quintagroup.plonecomments") 
    55from Products.CMFCore.utils import getToolByName 
     6from Products.CMFPlone.utils import safe_unicode 
    67from config import warning 
    78 
     
    135136        subject = translate(_(u"approve_user_notification_subject", 
    136137            default=u"Your comment on ${title} is now published", 
    137             mapping={u"title": getParent(context).Title()}), 
     138            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    138139            context=context.REQUEST) 
    139140        if user_email: 
     
    150151        subject = translate(_(u"rejected_user_notification_subject", 
    151152            default=u"Your comment on ${title} was not approved", 
    152             mapping={u"title": getParent(context).Title()}), 
     153            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    153154            context=context.REQUEST) 
    154155        if user_email: 
     
    166167        subject = translate(_(u"reply_user_notification_subject", 
    167168            default=u"Someone replied to your comment on ${title}", 
    168             mapping={u"title": getParent(context).Title()}), 
     169            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    169170            context=context.REQUEST) 
    170171        di_parrent = getDIParent(reply) 
     
    236237                        u"been reported for abuse.", 
    237238                mapping={u"organization_name": organization_name, 
    238                          u"title": getParent(context).Title()}), 
     239                         u"title": 
     240                             safe_unicode(getParent(context).title_or_id())}), 
    239241                context=context.REQUEST) 
    240242        else: 
Note: See TracChangeset for help on using the changeset viewer.