do not fail on positions being unicode (#4367)

This commit is contained in:
Frédéric Péters 2014-02-26 17:59:59 +01:00
parent 2b66fed686
commit 7a9266e0c0
1 changed files with 1 additions and 1 deletions

View File

@ -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,