Commit 94f699a1 authored by Jérome Perrin's avatar Jérome Perrin

Base_getCategoriesSpreadSheetMapping returns utf8 encoded strings, not unicode


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b7ebee2
......@@ -228,6 +228,8 @@ for table_name in spreadsheets.keys():\n
if cell_id not in (\'\', None):\n
# Handle normal properties\n
if not property_id.startswith(\'path_\'):\n
if same_type(cell_data, u\'\'):\n
cell_data = cell_data.encode(\'utf8\')\n
category_properties[property_id] = cell_data\n
# Handle \'path\' property\n
else:\n
......@@ -358,6 +360,7 @@ return categories_spreadsheet_mapping\n
<string>cell_data</string>
<string>cell_id</string>
<string>alt_id_source</string>
<string>same_type</string>
<string>path_element_id</string>
<string>absolut_path_element_list</string>
<string>int</string>
......
911
\ No newline at end of file
912
\ No newline at end of file
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