Changeset 5257
- Timestamp:
- 05/16/07 08:24:18 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/contrib/comments/feeds.py
r4265 r5257 12 12 if not hasattr(self, '_site'): 13 13 self._site = Site.objects.get_current() 14 return "%s comments" % self._site.name14 return u"%s comments" % self._site.name 15 15 16 16 def link(self): … … 22 22 if not hasattr(self, '_site'): 23 23 self._site = Site.objects.get_current() 24 return "Latest comments on %s" % self._site.name24 return u"Latest comments on %s" % self._site.name 25 25 26 26 def items(self): django/branches/unicode/django/contrib/comments/views/comments.py
r5229 r5257 13 13 from django.conf import settings 14 14 from django.utils.translation import ungettext, ugettext as _ 15 from django.utils.encoding import smart_unicode 15 16 import base64, datetime 16 17 … … 249 250 # serve up the "Thanks for posting" page as if the comment WAS posted. 250 251 if request.META['REMOTE_ADDR'] in settings.BANNED_IPS: 251 mail_admins("Banned IP attempted to post comment", s tr(request.POST) + "\n\n" + str(request.META))252 mail_admins("Banned IP attempted to post comment", smart_unicode(request.POST) + "\n\n" + str(request.META)) 252 253 else: 253 254 manipulator.do_html2python(new_data) … … 313 314 if request.META['REMOTE_ADDR'] in settings.BANNED_IPS: 314 315 from django.core.mail import mail_admins 315 mail_admins("Practical joker", s tr(request.POST) + "\n\n" + str(request.META))316 mail_admins("Practical joker", smart_unicode(request.POST) + "\n\n" + str(request.META)) 316 317 else: 317 318 manipulator.do_html2python(new_data)
