Commit 34a44936 authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

All ERP5 API should manage UTF-8, not unicode.

parent c7683eb4
......@@ -15,7 +15,7 @@ preference = portal.portal_preferences.createPreferenceForUser(
context.getReference(), enable=True)
preference.setTitle(translateString('Preference for ${name}',
mapping=dict(name=context.getTitle().decode('utf-8'))))
mapping=dict(name=context.getTitle())))
for assignment in context.contentValues(portal_type='Assignment'):
group = assignment.getGroup(base=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment