[Erp5-report] r24607 - /erp5/trunk/products/ERP5Type/RoleProviderBase.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 17 14:41:53 CET 2008


Author: jerome
Date: Mon Nov 17 14:41:48 2008
New Revision: 24607

URL: http://svn.erp5.org?rev=24607&view=rev
Log:
pass unicode to the DTML method, otherwise it do strange encoding (probably
using manage_page_charset)

Modified:
    erp5/trunk/products/ERP5Type/RoleProviderBase.py

Modified: erp5/trunk/products/ERP5Type/RoleProviderBase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/RoleProviderBase.py?rev=24607&r1=24606&r2=24607&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/RoleProviderBase.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/RoleProviderBase.py [utf8] Mon Nov 17 14:41:48 2008
@@ -69,8 +69,8 @@
 
             a1 = {}
             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['name'] = a.Title()  # The name of this role definition (ex. Assignor at company X)
+            a1['description'] = unicode(a.Description(), 'utf8', 'repr')    # The Role Description (ex. a person in charge of assigning orders)
+            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['base_category'] = a.getBaseCategory() # Base Category Definition
             a1['base_category_script'] = a.getBaseCategoryScript() # Base Category Script Id




More information about the Erp5-report mailing list