Commit 64ac17e1 authored by Romain Courteaud's avatar Romain Courteaud

Migrate friend allocation interaction.

parent 099de512
<workflow_chain>
<chain>
<type>Computer</type>
<workflow>computer_slap_interface_workflow</workflow>
<workflow>computer_slap_interface_workflow, slapos_cloud_interaction_workflow</workflow>
</chain>
<chain>
<type>Computer Partition</type>
......
......@@ -27,15 +27,15 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
<list>
<string>Computer_updateDestinationSection</string>
</list>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<list>
<string>SaleTradeCondition_updateDestinationSection</string>
</list>
<tuple/>
</value>
</item>
<item>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleTradeCondition_setSubjectList</string> </value>
<value> <string>Computer_setSubjectList</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
......@@ -62,13 +62,13 @@
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Sale Trade Condition</string>
<string>Computer</string>
</list>
</value>
</item>
......
......@@ -50,17 +50,17 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>sale_trade_condition = state_change[\'object\']\n
portal = sale_trade_condition.getPortalObject()\n
<value> <string>computer = state_change[\'object\']\n
portal = computer.getPortalObject()\n
\n
subject_list = sale_trade_condition.getSubjectList()\n
subject_list = computer.getSubjectList()\n
person_list = []\n
\n
for subject in subject_list:\n
if subject:\n
person_list.extend([x.getObject() for x in portal.portal_catalog(validation_state="validated", portal_type="Person", default_email_text=subject)])\n
\n
sale_trade_condition.edit(destination_section_value_list=person_list)\n
computer.edit(destination_section_value_list=person_list)\n
</string> </value>
</item>
<item>
......@@ -77,7 +77,7 @@ sale_trade_condition.edit(destination_section_value_list=person_list)\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleTradeCondition_updateDestinationSection</string> </value>
<value> <string>Computer_updateDestinationSection</string> </value>
</item>
</dictionary>
</pickle>
......
Computer Partition | computer_partition_slap_interface_workflow
Computer | computer_slap_interface_workflow
Computer | slapos_cloud_interaction_workflow
Hosting Subscription | edit_workflow
Hosting Subscription | hosting_subscription_workflow
Hosting Subscription | instance_slap_interface_workflow
......
529
\ No newline at end of file
530
\ No newline at end of file
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