Commit cb1afc86 authored by Romain Courteaud's avatar Romain Courteaud

Update the python script BusinessTemplate_install in order to handle correctly

the version of the installation listbox (with MultiCheckBoxField).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23052 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f45f372
......@@ -88,7 +88,7 @@
<list>
<string>acl_users</string>
</list>
<string>rm</string>
<string>ERP5TypeTestCase</string>
</tuple>
</value>
</item>
......@@ -710,7 +710,9 @@ object_to_update = {}\n
if listbox is not None and len(listbox) > 0:\n
for item in listbox:\n
if item[\'choice\']:\n
object_to_update[item[\'listbox_key\']] = item[\'choice\']\n
# Choice parameter is now selected with a MultiCheckBoxField with only one element\n
# Business Template need to get a string and not a list\n
object_to_update[item[\'listbox_key\']] = item[\'choice\'][0]\n
else:\n
object_to_update[item[\'listbox_key\']] = "nothing"\n
\n
......@@ -727,28 +729,26 @@ elif workflow_action == \'reinstall_action\':\n
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA4AAAAPAAAAQwAA
AHONAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA
AHOWAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA
fAAAZAIAgwIAZAMAgwIAZAUAgwEAfQUAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAYAgwEAfQYAdAMA
dAMAfAAAZAIAgwIAZAMAgwIAZAcAgwEAfQcAaAAAfQgAfAQAdAkAagkAbxAAAXQKAHwEAIMBAGQI
AGoEAG9qAAF4YwB0CwB8BACDAQBEXVUAfQwAdAAAfAwAZAkAgwIAbyYAAXQAAHwMAGQJAIMCAHQN
AHwIAIMBAHQAAHwMAGQKAIMCADxuGgABZAsAdA0AfAgAgwEAdAAAfA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ZXQDAAAAbGVudAkAAABfZ2V0aXRlcl90BAAAAGl0
ZW10BwAAAF93cml0ZV8oDgAAAFIRAAAAUhAAAABSEgAAAFITAAAAUgMAAABSBAAAAFIFAAAAUgYA
AABSDQAAAFIUAAAAUhUAAABSFgAAAFIXAAAAUhgAAAAoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
dGhvbilzGAAAAEJ1c2luZXNzVGVtcGxhdGVfaW5zdGFsbAEAAABzIgAAAA8BHgEeAR4BHgIGASAB
DQAJAQ0DLwIhAg0BGwERAQ0BGwEoAQAAAHQYAAAAQnVzaW5lc3NUZW1wbGF0ZV9pbnN0YWxsKAEA
AABSGQAAACgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAdAAA
AAA=</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......
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