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 @@ ...@@ -88,7 +88,7 @@
<list> <list>
<string>acl_users</string> <string>acl_users</string>
</list> </list>
<string>rm</string> <string>ERP5TypeTestCase</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -710,7 +710,9 @@ object_to_update = {}\n ...@@ -710,7 +710,9 @@ object_to_update = {}\n
if listbox is not None and len(listbox) > 0:\n if listbox is not None and len(listbox) > 0:\n
for item in listbox:\n for item in listbox:\n
if item[\'choice\']:\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 else:\n
object_to_update[item[\'listbox_key\']] = "nothing"\n object_to_update[item[\'listbox_key\']] = "nothing"\n
\n \n
...@@ -727,28 +729,26 @@ elif workflow_action == \'reinstall_action\':\n ...@@ -727,28 +729,26 @@ elif workflow_action == \'reinstall_action\':\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA4AAAAPAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA4AAAAPAAAAQwAA
AHONAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA AHOWAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAd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FITAAAAUgMAAABSBAAAAFIFAAAAUgYA
AAAAUhUAAABSFgAAAFIXAAAAUhgAAAAoAAAAACgAAAAAc14AAAAvZXJwNS9wb3J0YWxfd29ya2Zs AABSDQAAAFIUAAAAUhUAAABSFgAAAFIXAAAAUhgAAAAoAAAAACgAAAAAcw8AAABTY3JpcHQgKFB5
b3cvYnVzaW5lc3NfdGVtcGxhdGVfaW5zdGFsbGF0aW9uX3dvcmtmbG93L3NjcmlwdHMvQnVzaW5l dGhvbilzGAAAAEJ1c2luZXNzVGVtcGxhdGVfaW5zdGFsbAEAAABzIgAAAA8BHgEeAR4BHgIGASAB
c3NUZW1wbGF0ZV9pbnN0YWxscxgAAABCdXNpbmVzc1RlbXBsYXRlX2luc3RhbGwBAAAAcyIAAAAP DQAJAQ0DLwIhAg0BGwERAQ0BGwEoAQAAAHQYAAAAQnVzaW5lc3NUZW1wbGF0ZV9pbnN0YWxsKAEA
AR4BHgEeAR4CBgEgAQ0ACQENASYCIQINARsBEQENARsBKAEAAAB0GAAAAEJ1c2luZXNzVGVtcGxh AABSGQAAACgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAdAAA
dGVfaW5zdGFsbCgBAAAAUhkAAAAoAAAAACgAAAAAc14AAAAvZXJwNS9wb3J0YWxfd29ya2Zsb3cv AAA=</string> </value>
YnVzaW5lc3NfdGVtcGxhdGVfaW5zdGFsbGF0aW9uX3dvcmtmbG93L3NjcmlwdHMvQnVzaW5lc3NU
ZW1wbGF0ZV9pbnN0YWxscwgAAAA8bW9kdWxlPgEAAAB0AAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <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