From 5ffd8521e0f5b0771fe1f077e137993543266464 Mon Sep 17 00:00:00 2001 From: Stephan Geulette Date: Mon, 11 Mar 2013 14:01:03 +0100 Subject: [PATCH] decode title, returning unicode, to standardize term attributes --- src/collective/contact/widget/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collective/contact/widget/source.py b/src/collective/contact/widget/source.py index b183960..dc7d58e 100644 --- a/src/collective/contact/widget/source.py +++ b/src/collective/contact/widget/source.py @@ -63,7 +63,7 @@ class ContactSource(ObjPathSource): else: value = brain.getPath()[len(self.portal_path):] full_title = brain.get_full_title or brain.Title or brain.id - 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'