[Erp5-report] r19310 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 14 15:25:47 CET 2008


Author: romain
Date: Thu Feb 14 15:25:47 2008
New Revision: 19310

URL: http://svn.erp5.org?rev=19310&view=rev
Log:
Encode local_roles to UTF-8

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=19310&r1=19309&r2=19310&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Feb 14 15:25:47 2008
@@ -4025,6 +4025,8 @@
     local_roles_dict = {}
     for role in local_roles_list:
       id = role.getAttribute('id')
+      if isinstance(id, unicode):
+        id = id.encode('utf-8')
       item_type_list = []
       item_list = role.getElementsByTagName('item')
       for item in item_list:
@@ -4036,6 +4038,8 @@
     group_local_roles_dict = {}
     for role in local_roles_list:
       id = role.getAttribute('id')
+      if isinstance(id, unicode):
+        id = id.encode('utf-8')
       item_type_list = []
       item_list = role.getElementsByTagName('item')
       for item in item_list:




More information about the Erp5-report mailing list