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 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<string>Products.DCWorkflow.DCWorkflow</string> <tuple/>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -89,10 +86,9 @@ ...@@ -89,10 +86,9 @@
<value> <value>
<tuple> <tuple>
<list> <list>
<string>baobab</string>
<string>acl_users</string> <string>acl_users</string>
</list> </list>
<string>seb</string> <string>rm</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -161,11 +157,8 @@ ...@@ -161,11 +157,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -214,11 +207,8 @@ ...@@ -214,11 +207,8 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="States" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>States</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -315,11 +305,8 @@ ...@@ -315,11 +305,8 @@
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Transitions" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>Transitions</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -496,11 +483,8 @@ ...@@ -496,11 +483,8 @@
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -613,11 +597,8 @@ ...@@ -613,11 +597,8 @@
<record id="6" aka="AAAAAAAAAAY="> <record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -648,11 +629,8 @@ ...@@ -648,11 +629,8 @@
<record id="7" aka="AAAAAAAAAAc="> <record id="7" aka="AAAAAAAAAAc=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -733,6 +711,8 @@ if listbox is not None and len(listbox) > 0:\n ...@@ -733,6 +711,8 @@ 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 object_to_update[item[\'listbox_key\']] = item[\'choice\']\n
else:\n
object_to_update[item[\'listbox_key\']] = "nothing"\n
\n \n
if workflow_action == \'install_action\':\n if workflow_action == \'install_action\':\n
business_template.install(force=0, object_to_update=object_to_update, \\\n business_template.install(force=0, object_to_update=object_to_update, \\\n
...@@ -747,27 +727,28 @@ elif workflow_action == \'reinstall_action\':\n ...@@ -747,27 +727,28 @@ 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
AHN0AQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA AHONAQAAdAAAfAAAZAEAgwIAfQIAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQQAdAMAdAMA
fAAAZAIAgwIAZAMAgwIAZAUAgwEAfQUAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAYAgwEAfQYAdAMA fAAAZAIAgwIAZAMAgwIAZAUAgwEAfQUAdAMAdAMAfAAAZAIAgwIAZAMAgwIAZAYAgwEAfQYAdAMA
dAMAfAAAZAIAgwIAZAMAgwIAZAcAgwEAfQcAaAAAfQgAfAQAdAkAagkAbxAAAXQKAHwEAIMBAGQI dAMAfAAAZAIAgwIAZAMAgwIAZAcAgwEAfQcAaAAAfQgAfAQAdAkAagkAbxAAAXQKAHwEAIMBAGQI
AGoEAG9RAAF4SgB0CwB8BACDAQBEXTwAfQwAdAAAfAwAZAkAgwIAbyYAAXQAAHwMAGQJAIMCAHQN AGoEAG9qAAF4YwB0CwB8BACDAQBEXVUAfQwAdAAAfAwAZAkAgwIAbyYAAXQAAHwMAGQJAIMCAHQN
AHwIAIMBAHQAAHwMAGQKAIMCADxuAQAB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EAAABSGAAAACgAAAAAKAAAAABzYAAAAC9iYW9iYWIvcG9ydGFsX3dvcmtmbG93L2J1 AR4BHgEeAR4CBgEgAQ0ACQENASYCIQINARsBEQENARsBKAEAAAB0GAAAAEJ1c2luZXNzVGVtcGxh
c2luZXNzX3RlbXBsYXRlX2luc3RhbGxhdGlvbl93b3JrZmxvdy9zY3JpcHRzL0J1c2luZXNzVGVt dGVfaW5zdGFsbCgBAAAAUhkAAAAoAAAAACgAAAAAc14AAAAvZXJwNS9wb3J0YWxfd29ya2Zsb3cv
cGxhdGVfaW5zdGFsbHMIAAAAPG1vZHVsZT4BAAAAdAAAAAA=</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