decode title, returning unicode, to standardize term attributes

Stephan Geulette 2013-03-11 14:01:03 +01:00
parent f0a4a3d959
commit 5ffd8521e0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ContactSource(ObjPathSource):
value = brain.getPath()[len(self.portal_path):]
full_title = brain.get_full_title or brain.Title or
return Term(value, token=brain.getPath(), title=full_title, brain=brain)
return Term(value, token=brain.getPath(), title=full_title.decode('utf8'), brain=brain)
def tokenToPath(self, token):
"""For token='/Plone/a/b', return '/a/b'