do not fail on positions being unicode (#4367)
This commit is contained in:
parent
2b66fed686
commit
7a9266e0c0
|
@ -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,
|
||||
|
|
Reference in New Issue