summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Geulette <s.geulette@imio.be>2013-03-11 13:01:03 (GMT)
committerStephan Geulette <s.geulette@imio.be>2013-03-11 13:01:03 (GMT)
commit5ffd8521e0f5b0771fe1f077e137993543266464 (patch)
tree5b802ce16fea34bb4d24b7ce89a71d8bbdb36eb4
parentf0a4a3d9595e7bbc9ea1e5f39ff791f6e1494e74 (diff)
downloadcollective.contact.widget-5ffd8521e0f5b0771fe1f077e137993543266464.zip
collective.contact.widget-5ffd8521e0f5b0771fe1f077e137993543266464.tar.gz
collective.contact.widget-5ffd8521e0f5b0771fe1f077e137993543266464.tar.bz2
decode title, returning unicode, to standardize term attributes
-rw-r--r--src/collective/contact/widget/source.py2
1 files changed, 1 insertions, 1 deletions
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'