Merge 'Convert anonymous-supplied name to unicode as done for authenticated members.' from jarn-unicode branch.

svn path=/plone.app.discussion/trunk/; revision=45662
This commit is contained in:
Timo Stollenwerk 2010-11-08 17:09:26 +00:00
parent 91a488931d
commit 5b788d1156
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ Changelog
1.0RC1 (unreleased)
-------------------
- Convert anonymous-supplied name to unicode as done for authenticated members.
[ggozad]
- Catch SMTP exceptions when sending email notifications.
[timo]

View File

@ -136,6 +136,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
text = data['text']
if 'author_name' in data:
author_name = data['author_name']
if isinstance(author_name, str):
author_name = unicode(author_name, 'utf-8')
if 'author_email' in data:
author_email = data['author_email']
if 'user_notification' in data: