Changeset 2753 in products
- Timestamp:
- Aug 16, 2010 11:35:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/utils.py
r2137 r2753 4 4 _ = MessageFactory("quintagroup.plonecomments") 5 5 from Products.CMFCore.utils import getToolByName 6 from Products.CMFPlone.utils import safe_unicode 6 7 from config import warning 7 8 … … 135 136 subject = translate(_(u"approve_user_notification_subject", 136 137 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())}), 138 139 context=context.REQUEST) 139 140 if user_email: … … 150 151 subject = translate(_(u"rejected_user_notification_subject", 151 152 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())}), 153 154 context=context.REQUEST) 154 155 if user_email: … … 166 167 subject = translate(_(u"reply_user_notification_subject", 167 168 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())}), 169 170 context=context.REQUEST) 170 171 di_parrent = getDIParent(reply) … … 236 237 u"been reported for abuse.", 237 238 mapping={u"organization_name": organization_name, 238 u"title": getParent(context).Title()}), 239 u"title": 240 safe_unicode(getParent(context).title_or_id())}), 239 241 context=context.REQUEST) 240 242 else:
Note: See TracChangeset
for help on using the changeset viewer.