Commit 9f549ea2 authored by Jérome Perrin's avatar Jérome Perrin

pass unicode to the DTML method, otherwise it do strange encoding (probably

using manage_page_charset)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24607 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e07a94a3
...@@ -69,8 +69,8 @@ class RoleProviderBase: ...@@ -69,8 +69,8 @@ class RoleProviderBase:
a1 = {} a1 = {}
a1['id'] = a.getId() # The Role Id (ex. Assignor) a1['id'] = a.getId() # The Role Id (ex. Assignor)
a1['description'] = a.Description() # The Role Description (ex. a person in charge of assigning orders) a1['description'] = unicode(a.Description(), 'utf8', 'repr') # The Role Description (ex. a person in charge of assigning orders)
a1['name'] = a.Title() # The name of this role definition (ex. Assignor at company X) a1['name'] = unicode(a.Title(), 'utf8', 'repr') # The name of this role definition (ex. Assignor at company X)
a1['category'] = a.getCategory() or [] # Category definition a1['category'] = a.getCategory() or [] # Category definition
a1['base_category'] = a.getBaseCategory() # Base Category Definition a1['base_category'] = a.getBaseCategory() # Base Category Definition
a1['base_category_script'] = a.getBaseCategoryScript() # Base Category Script Id a1['base_category_script'] = a.getBaseCategoryScript() # Base Category Script Id
......
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