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

Migrate friend allocation interaction.

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