Changeset 2754 in products


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

Fixed issue #7

Location:
quintagroup.plonecomments/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/trunk

    • Property svn:mergeinfo changed from /quintagroup.plonecomments/branches/jquery:2230,2240-2241,2313,2321 to /quintagroup.plonecomments/branches/jquery:2230,2240-2241,2313,2321,2753
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/locales

    • Property svn:mergeinfo changed from /quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales:2079-2087,2230,2240-2241,2313,2321 to /quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/locales:2079-2087,2230,2240-2241,2313,2321,2753
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt

    • Property svn:mergeinfo changed from /quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:2079-2087,2230,2240-2241,2313,2321 to /quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt:2079-2087,2230,2240-2241,2313,2321,2753
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/utils.py

    r1736 r2754  
    44_ = MessageFactory("quintagroup.plonecomments") 
    55from Products.CMFCore.utils import getToolByName 
     6from Products.CMFPlone.utils import safe_unicode 
    67from config import warning 
    78 
     
    121122        subject = translate(_(u"approve_user_notification_subject", 
    122123            default=u"Your comment on ${title} is now published", 
    123             mapping={u"title" : getParent(context).Title()}), 
     124            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    124125            context=context.REQUEST) 
    125126        if user_email: 
     
    136137        subject = translate(_(u"rejected_user_notification_subject", 
    137138            default=u"Your comment on ${title} was not approved", 
    138             mapping={u"title" : getParent(context).Title()}), 
     139            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    139140            context=context.REQUEST) 
    140141        if user_email: 
     
    152153        subject = translate(_(u"reply_user_notification_subject", 
    153154            default=u"Someone replied to your comment on ${title}", 
    154             mapping={u"title" : getParent(context).Title()}), 
     155            mapping={u"title": safe_unicode(getParent(context).title_or_id())}), 
    155156            context=context.REQUEST) 
    156157        di_parrent = getDIParent(reply) 
     
    217218                    'comment_text':comment.text} 
    218219            subject = translate(_(u"report_abuse_subject", 
    219                 default=u"[${organization_name}] A comment on ${title} has been reported for abuse.", 
    220                 mapping={u"organization_name" : organization_name, u"title" : getParent(context).Title()}), 
     220                default=u"[${organization_name}] A comment on ${title} has " 
     221                        u"been reported for abuse.", 
     222                mapping={u"organization_name": organization_name, 
     223                         u"title": 
     224                             safe_unicode(getParent(context).title_or_id())}), 
    221225                context=context.REQUEST) 
    222226        else: 
Note: See TracChangeset for help on using the changeset viewer.