Commit 3d7e04f6 authored by Rafael Monnerat's avatar Rafael Monnerat

If choice not comes with the item it means that the choice is "nothing".

This will make new ui for business templates work and keep the compatibility with the previous implementation.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f0cb3704
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
<global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -89,10 +86,9 @@
<value>
<tuple>
<list>
<string>baobab</string>
<string>acl_users</string>
</list>
<string>seb</string>
<string>rm</string>
</tuple>
</value>
</item>
......@@ -161,11 +157,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Scripts</string>
<string>Scripts</string>
</tuple>
<none/>
<global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -214,11 +207,8 @@
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.States</string>
<string>States</string>
</tuple>
<none/>
<global name="States" module="Products.DCWorkflow.States"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -315,11 +305,8 @@
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>Transitions</string>
</tuple>
<none/>
<global name="Transitions" module="Products.DCWorkflow.Transitions"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -496,11 +483,8 @@
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Variables</string>
<string>Variables</string>
</tuple>
<none/>
<global name="Variables" module="Products.DCWorkflow.Variables"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -613,11 +597,8 @@
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Worklists</string>
<string>Worklists</string>
</tuple>
<none/>
<global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -648,11 +629,8 @@
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -733,6 +711,8 @@ 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
else:\n
object_to_update[item[\'listbox_key\']] = "nothing"\n
\n
if workflow_action == \'install_action\':\n
business_template.install(force=0, object_to_update=object_to_update, \\\n
......@@ -747,27 +727,28 @@ elif workflow_action == \'reinstall_action\':\n
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAA4AAAAPAAAAQwAA
AHN0AQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA
AHONAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA
fAAAZAIAgwIAZAMAgwIAZAUAgwEAfQUAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAYAgwEAfQYAdAMA
dAMAfAAAZAIAgwIAZAMAgwIAZAcAgwEAfQcAaAAAfQgAfAQAdAkAagkAbxAAAXQKAHwEAIMBAGQI
AGoEAG9RAAF4SgB0CwB8BACDAQBEXTwAfQwAdAAAfAwAZAkAgwIAbyYAAXQAAHwMAGQJAIMCAHQN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ZW10BwAAAF93
cml0ZV8oDgAAAFIRAAAAUhAAAABSEgAAAFITAAAAUgMAAABSBAAAAFIFAAAAUgYAAABSDQAAAFIU
AAAAUhUAAABSFgAAAFIXAAAAUhgAAAAoAAAAACgAAAAAc14AAAAvZXJwNS9wb3J0YWxfd29ya2Zs
b3cvYnVzaW5lc3NfdGVtcGxhdGVfaW5zdGFsbGF0aW9uX3dvcmtmbG93L3NjcmlwdHMvQnVzaW5l
c3NUZW1wbGF0ZV9pbnN0YWxscxgAAABCdXNpbmVzc1RlbXBsYXRlX2luc3RhbGwBAAAAcyIAAAAP
AR4BHgEeAR4CBgEgAQ0ACQENASYCIQINARsBEQENARsBKAEAAAB0GAAAAEJ1c2luZXNzVGVtcGxh
dGVfaW5zdGFsbCgBAAAAUhkAAAAoAAAAACgAAAAAc14AAAAvZXJwNS9wb3J0YWxfd29ya2Zsb3cv
YnVzaW5lc3NfdGVtcGxhdGVfaW5zdGFsbGF0aW9uX3dvcmtmbG93L3NjcmlwdHMvQnVzaW5lc3NU
ZW1wbGF0ZV9pbnN0YWxscwgAAAA8bW9kdWxlPgEAAAB0AAAAAA==</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