Make sure the catalog index for creator always stores encoded stings and not unicode since all strings in the catalog have to be utf-8 encoded strings.

svn path=/plone.app.discussion/trunk/; revision=51435
This commit is contained in:
Timo Stollenwerk 2011-07-25 08:12:04 +00:00
parent 67fcde6f12
commit f98b82b2d8

View File

@ -72,7 +72,7 @@ def title(object):
@indexer(IComment)
def creator(object):
return object.creator and safe_unicode(object.creator)
return object.creator and safe_unicode(object.creator).encode('utf-8')
@indexer(IComment)
def description(object):