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 @@
<value>
<tuple>
<list>
<string>baobab</string>
<string>acl_users</string>
</list>
<string>zope</string>
<string>seb</string>
</tuple>
</value>
</item>
......@@ -721,8 +722,10 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
business_template = state_change.object\n
business_template = state_change[\'object\']\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
\n
object_to_update = {}\n
......@@ -732,32 +735,39 @@ if listbox is not None and len(listbox) > 0:\n
object_to_update[item[\'listbox_key\']] = item[\'choice\']\n
\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
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>
</item>
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAQAAAAwAAAAMAAAAQwAA
AHMgAQAAdAAAfAAAZAEAgwIAfQIAdAAAdAAAfAAAZAIAgwIAZAMAgwIAZAQAgwEAfQMAdAAAdAAA
fAAAZAIAgwIAZAMAgwIAZAUAgwEAfQQAaAAAfQUAfAMAdAYAagkAbxAAAXQHAHwDAIMBAGQGAGoE
AG9RAAF4SgB0CAB8AwCDAQBEXTwAfQkAdAoAfAkAZAcAgwIAbyYAAXQKAHwJAGQHAIMCAHQLAHwF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AAAUhMAAABSFAAAAFIVAAAAUhYAAABSFwAAACgAAAAAKAAAAABzYAAA
AC9iYW9iYWIvcG9ydGFsX3dvcmtmbG93L2J1c2luZXNzX3RlbXBsYXRlX2luc3RhbGxhdGlvbl93
b3JrZmxvdy9zY3JpcHRzL0J1c2luZXNzVGVtcGxhdGVfaW5zdGFsbHQYAAAAQnVzaW5lc3NUZW1w
bGF0ZV9pbnN0YWxsAQAAAHMgAAAADwEeAR4BHgEeAgYBIAENAAkBDQEuAg0BGwERAQ0BGwEoAQAA
AFIYAAAAKAEAAABSGAAAACgAAAAAKAAAAABzYAAAAC9iYW9iYWIvcG9ydGFsX3dvcmtmbG93L2J1
c2luZXNzX3RlbXBsYXRlX2luc3RhbGxhdGlvbl93b3JrZmxvdy9zY3JpcHRzL0J1c2luZXNzVGVt
cGxhdGVfaW5zdGFsbHMIAAAAPG1vZHVsZT4BAAAAdAAAAAA=</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......@@ -792,16 +802,18 @@ AAAAAA==</string> </value>
<value>
<tuple>
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>business_template</string>
<string>_getattr_</string>
<string>listbox</string>
<string>update_catalog</string>
<string>update_translation</string>
<string>workflow_action</string>
<string>object_to_update</string>
<string>None</string>
<string>len</string>
<string>_getiter_</string>
<string>item</string>
<string>_getitem_</string>
<string>_write_</string>
</tuple>
</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