Commit 204a6ce0 authored by Aurel's avatar Aurel

pass parameter for update/translation to bt install


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12887 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e433f8f
...@@ -89,9 +89,10 @@ ...@@ -89,9 +89,10 @@
<value> <value>
<tuple> <tuple>
<list> <list>
<string>baobab</string>
<string>acl_users</string> <string>acl_users</string>
</list> </list>
<string>zope</string> <string>seb</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -721,8 +722,10 @@ ...@@ -721,8 +722,10 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
business_template = state_change.object\n business_template = state_change[\'object\']\n
listbox = state_change.kwargs.get(\'listbox\')\n listbox = state_change.kwargs.get(\'listbox\')\n
update_catalog = state_change.kwargs.get(\'update_catalog\')\n
update_translation = state_change.kwargs.get(\'update_translation\')\n
workflow_action = state_change.kwargs.get(\'workflow_action\')\n workflow_action = state_change.kwargs.get(\'workflow_action\')\n
\n \n
object_to_update = {}\n object_to_update = {}\n
...@@ -732,32 +735,39 @@ if listbox is not None and len(listbox) > 0:\n ...@@ -732,32 +735,39 @@ if listbox is not None and len(listbox) > 0:\n
object_to_update[item[\'listbox_key\']] = item[\'choice\']\n object_to_update[item[\'listbox_key\']] = item[\'choice\']\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
update_catalog=update_catalog, update_translation=update_translation)\n
elif workflow_action == \'reinstall_action\':\n elif workflow_action == \'reinstall_action\':\n
business_template.reinstall(force=0, object_to_update=object_to_update)\n business_template.reinstall(force=0, object_to_update=object_to_update, \\\n
update_catalog=update_catalog, update_translation=update_translation)\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAA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AQAAABOb25ldAMAAABsZW50CQAAAF9nZXRp
cGxhdGVfaW5zdGFsbAEAAABzGAAAAA8BHgEeAgYBIAENAAkBDQEuAg0BIAENASgBAAAAUhYAAAAo dGVyX3QEAAAAaXRlbXQHAAAAX3dyaXRlXygOAAAAUhAAAABSDwAAAFIRAAAAUhIAAABSAwAAAFIE
AQAAAFIWAAAAKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAAB0 AAAAUgUAAABSBgAAAFIMAAAAUhMAAABSFAAAAFIVAAAAUhYAAABSFwAAACgAAAAAKAAAAABzYAAA
AAAAAA==</string> </value> AC9iYW9iYWIvcG9ydGFsX3dvcmtmbG93L2J1c2luZXNzX3RlbXBsYXRlX2luc3RhbGxhdGlvbl93
b3JrZmxvdy9zY3JpcHRzL0J1c2luZXNzVGVtcGxhdGVfaW5zdGFsbHQYAAAAQnVzaW5lc3NUZW1w
bGF0ZV9pbnN0YWxsAQAAAHMgAAAADwEeAR4BHgEeAgYBIAENAAkBDQEuAg0BGwERAQ0BGwEoAQAA
AFIYAAAAKAEAAABSGAAAACgAAAAAKAAAAABzYAAAAC9iYW9iYWIvcG9ydGFsX3dvcmtmbG93L2J1
c2luZXNzX3RlbXBsYXRlX2luc3RhbGxhdGlvbl93b3JrZmxvdy9zY3JpcHRzL0J1c2luZXNzVGVt
cGxhdGVfaW5zdGFsbHMIAAAAPG1vZHVsZT4BAAAAdAAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -792,16 +802,18 @@ AAAAAA==</string> </value> ...@@ -792,16 +802,18 @@ AAAAAA==</string> </value>
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>business_template</string> <string>business_template</string>
<string>_getattr_</string>
<string>listbox</string> <string>listbox</string>
<string>update_catalog</string>
<string>update_translation</string>
<string>workflow_action</string> <string>workflow_action</string>
<string>object_to_update</string> <string>object_to_update</string>
<string>None</string> <string>None</string>
<string>len</string> <string>len</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>item</string> <string>item</string>
<string>_getitem_</string>
<string>_write_</string> <string>_write_</string>
</tuple> </tuple>
</value> </value>
......
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