Commit 4749c6c1 authored by Fabien Morin's avatar Fabien Morin

convert object_id to str. In this way, line uid will not be unicode, and can...

convert object_id to str. In this way, line uid will not be unicode, and can be concatenate with others ascii words (like it is in Products/Formulator/Widget.py l. 856)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29539 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8fbd45f5
......@@ -108,7 +108,7 @@ for object_id in keys:\n
object_state=object_state,\n
object_class=object_class,\n
choice_item_list=choice_item_list)\n
line.setUid(\'new_%s\' % object_id)\n
line.setUid(\'new_%s\' % str(object_id))\n
object_list.append(line)\n
i += 1 \n
\n
......
......@@ -138,7 +138,7 @@ for bt in bt_id_list:\n
object_state=object_state, \n
object_class=object_class, \n
choice_item_list=[[save_and_remove_title, \'save_and_remove\']])\n
line.setUid(\'new_%s\' % object_id)\n
line.setUid(\'new_%s\' % str(object_id))\n
object_list.append(line)\n
i += 1 \n
\n
......
1329
\ No newline at end of file
1330
\ 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