Commit 8ee5fd30 authored by Jérome Perrin's avatar Jérome Perrin

change TemplateTool_installBusinessTemplateListAction to be consistent with...

change TemplateTool_installBusinessTemplateListAction to be consistent with BusinessTemplate_install (see r23052).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24520 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37560b27
......@@ -61,11 +61,12 @@ bt_id_list = getattr(context.REQUEST, \'bt_list\', ())\n
bt_dict = {}\n
object_to_update = {}\n
for item in listbox:\n
if item[\'choice\']:\n
choice = item[\'choice\'][0]\n
else:\n
choice = "nothing"\n
bt_id, object_id = item[\'listbox_key\'].split(\'|\')\n
try:\n
bt_dict.setdefault(bt_id, dict())[object_id] = item[\'choice\'][0]\n
except IndexError:\n
bt_dict.setdefault(bt_id, dict())[object_id] = item[\'choice\']\n
bt_dict.setdefault(bt_id, dict())[object_id] = choice\n
\n
bt_title_list = []\n
for bt_id in bt_id_list:\n
......@@ -132,6 +133,7 @@ return RESPONSE.redirect("%s/view?portal_status_message=Business+Template+%s+ins
<string>_getiter_</string>
<string>item</string>
<string>_getitem_</string>
<string>choice</string>
<string>bt_id</string>
<string>object_id</string>
<string>_write_</string>
......
1012
\ No newline at end of file
1013
\ 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