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:
parent
67fcde6f12
commit
f98b82b2d8
@ -72,7 +72,7 @@ def title(object):
|
|||||||
|
|
||||||
@indexer(IComment)
|
@indexer(IComment)
|
||||||
def creator(object):
|
def creator(object):
|
||||||
return object.creator and safe_unicode(object.creator)
|
return object.creator and safe_unicode(object.creator).encode('utf-8')
|
||||||
|
|
||||||
@indexer(IComment)
|
@indexer(IComment)
|
||||||
def description(object):
|
def description(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user