From 7a9266e0c0fbaf4c1b3196fd9fb241b141fc66b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 26 Feb 2014 17:59:59 +0100 Subject: [PATCH] do not fail on positions being unicode (#4367) --- src/collective/contact/core/content/person.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collective/contact/core/content/person.py b/src/collective/contact/core/content/person.py index cd17a43..8e65590 100644 --- a/src/collective/contact/core/content/person.py +++ b/src/collective/contact/core/content/person.py @@ -91,7 +91,7 @@ class Person(Container): return [obj for obj in self.values() if IHeldPosition.providedBy(obj)] def get_held_positions_titles(self): - return [p.Title() for p in self.get_held_positions()] + return [unicode(p.Title(), 'utf-8') for p in self.get_held_positions()] class PersonSchemaPolicy(grok.GlobalUtility,