Commit 3405330a authored by Łukasz Nowak's avatar Łukasz Nowak

Migrate subscription rule configuration.

parent 8e2ac650
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>vifib_subscription_item_rule</string> </value> <value> <string>slapos_subscription_item_rule</string> </value>
</item> </item>
<item> <item>
<key> <string>int_index</string> </key> <key> <string>int_index</string> </key>
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Vifib Open Order Subscription Item Rule</string> </value> <value> <string>SlapOS Subscription Item Rule</string> </value>
</item> </item>
<item> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
...@@ -455,6 +455,51 @@ ...@@ -455,6 +455,51 @@
</value> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>922.37618.39487.43656</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="6.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1352883051.24</float>
<string>GMT+1</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list> </list>
</tuple> </tuple>
</pickle> </pickle>
......
<allowed_content_type_list>
<portal_type id="Rule Tool">
<item>Subscription Item Root Simulation Rule</item>
</portal_type>
<portal_type id="Subscription Item Root Simulation Rule">
<item>Accounting Rule Cell</item>
<item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item>
<item>Mapped Property</item>
<item>Net Converted Quantity Divergence Tester</item>
<item>Predicate</item>
<item>Specialise Divergence Tester</item>
<item>String Divergence Tester</item>
<item>Variation Divergence Tester</item>
</portal_type>
</allowed_content_type_list>
\ No newline at end of file
<workflow_chain>
<chain>
<type>Subscription Item Root Simulation Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
</workflow_chain>
\ No newline at end of file
21 22
\ No newline at end of file \ No newline at end of file
Hosting Subscription | periodicity Hosting Subscription | periodicity
Subscription Item Root Simulation Rule | view
\ No newline at end of file
...@@ -13,3 +13,4 @@ account_module/refundable_vat ...@@ -13,3 +13,4 @@ account_module/refundable_vat
account_module/sales account_module/sales
service_module/slapos_tax service_module/slapos_tax
service_module/slapos_discount service_module/slapos_discount
portal_rules/slapos_subscription_item_rule
\ No newline at end of file
...@@ -21,6 +21,8 @@ organisation_module/slapos/bank_account ...@@ -21,6 +21,8 @@ organisation_module/slapos/bank_account
portal_alarms/slapos_request_update_hosting_subscription_open_sale_order portal_alarms/slapos_request_update_hosting_subscription_open_sale_order
portal_categories/trade_phase/slapos portal_categories/trade_phase/slapos
portal_categories/trade_phase/slapos/** portal_categories/trade_phase/slapos/**
portal_rules/slapos_subscription_item_rule
portal_rules/slapos_subscription_item_rule/**
sale_trade_condition_module/slapos_trade_condition sale_trade_condition_module/slapos_trade_condition
sale_trade_condition_module/slapos_trade_condition/1 sale_trade_condition_module/slapos_trade_condition/1
service_module/slapos_discount service_module/slapos_discount
......
Rule Tool | Subscription Item Root Simulation Rule
Subscription Item Root Simulation Rule | Accounting Rule Cell
Subscription Item Root Simulation Rule | Category Membership Divergence Tester
Subscription Item Root Simulation Rule | DateTime Divergence Tester
Subscription Item Root Simulation Rule | Float Divergence Tester
Subscription Item Root Simulation Rule | Mapped Property
Subscription Item Root Simulation Rule | Net Converted Quantity Divergence Tester
Subscription Item Root Simulation Rule | Predicate
Subscription Item Root Simulation Rule | Specialise Divergence Tester
Subscription Item Root Simulation Rule | String Divergence Tester
Subscription Item Root Simulation Rule | Variation Divergence Tester
\ No newline at end of file
Subscription Item Root Simulation Rule | edit_workflow
Subscription Item Root Simulation Rule | rule_validation_workflow
\ No newline at end of file
129 130
\ No newline at end of file \ No newline at end of file
...@@ -5,5 +5,4 @@ portal_rules/vifib_invoice_transaction_simulation_rule ...@@ -5,5 +5,4 @@ portal_rules/vifib_invoice_transaction_simulation_rule
portal_rules/vifib_invoice_root_simulation_rule portal_rules/vifib_invoice_root_simulation_rule
portal_rules/vifib_order_root_simulation_rule portal_rules/vifib_order_root_simulation_rule
portal_rules/vifib_payment_simulation_rule portal_rules/vifib_payment_simulation_rule
portal_rules/vifib_subscription_item_rule
portal_rules/vifib_trade_model_simulation_rule portal_rules/vifib_trade_model_simulation_rule
\ No newline at end of file
...@@ -31,8 +31,6 @@ portal_rules/vifib_order_root_simulation_rule ...@@ -31,8 +31,6 @@ portal_rules/vifib_order_root_simulation_rule
portal_rules/vifib_order_root_simulation_rule/** portal_rules/vifib_order_root_simulation_rule/**
portal_rules/vifib_payment_simulation_rule portal_rules/vifib_payment_simulation_rule
portal_rules/vifib_payment_simulation_rule/** portal_rules/vifib_payment_simulation_rule/**
portal_rules/vifib_subscription_item_rule
portal_rules/vifib_subscription_item_rule/**
portal_rules/vifib_trade_model_simulation_rule portal_rules/vifib_trade_model_simulation_rule
portal_rules/vifib_trade_model_simulation_rule/** portal_rules/vifib_trade_model_simulation_rule/**
portal_solvers/Accept Solver portal_solvers/Accept Solver
......
...@@ -8,16 +8,4 @@ ...@@ -8,16 +8,4 @@
<item>String Divergence Tester</item> <item>String Divergence Tester</item>
<item>Variation Divergence Tester</item> <item>Variation Divergence Tester</item>
</portal_type> </portal_type>
<portal_type id="Subscription Item Root Simulation Rule">
<item>Accounting Rule Cell</item>
<item>Category Membership Divergence Tester</item>
<item>DateTime Divergence Tester</item>
<item>Float Divergence Tester</item>
<item>Mapped Property</item>
<item>Net Converted Quantity Divergence Tester</item>
<item>Predicate</item>
<item>Specialise Divergence Tester</item>
<item>String Divergence Tester</item>
<item>Variation Divergence Tester</item>
</portal_type>
</allowed_content_type_list> </allowed_content_type_list>
\ No newline at end of file
...@@ -15,8 +15,4 @@ ...@@ -15,8 +15,4 @@
<type>Software Instance</type> <type>Software Instance</type>
<workflow>instance_accounting_slap_interaction_workflow</workflow> <workflow>instance_accounting_slap_interaction_workflow</workflow>
</chain> </chain>
<chain>
<type>Subscription Item Root Simulation Rule</type>
<workflow>edit_workflow, rule_validation_workflow</workflow>
</chain>
</workflow_chain> </workflow_chain>
\ No newline at end of file
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>installation = state_change[\'object\']\n <value> <string>return\n
installation = state_change[\'object\']\n
portal = installation.getPortalObject()\n portal = installation.getPortalObject()\n
isTransitionPossible = portal.portal_workflow.isTransitionPossible\n isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
\n \n
......
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>instance = state_change[\'object\']\n <value> <string>return\n
instance = state_change[\'object\']\n
# Get latest workflow transition\n # Get latest workflow transition\n
state = instance.getSlapState()\n state = instance.getSlapState()\n
started = "start_requested"\n started = "start_requested"\n
......
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>instance = state_change[\'object\']\n <value> <string>return\n
instance = state_change[\'object\']\n
hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n
person_relative_url = hosting_subscription.getDestinationSection()\n person_relative_url = hosting_subscription.getDestinationSection()\n
portal = instance.getPortalObject()\n portal = instance.getPortalObject()\n
......
37 38
\ No newline at end of file \ No newline at end of file
Hosting Subscription | unfiltered_tracking_list Hosting Subscription | unfiltered_tracking_list
Subscription Item Root Simulation Rule | view
\ No newline at end of file
...@@ -5,13 +5,3 @@ Delivery Simulation Rule | Net Converted Quantity Divergence Tester ...@@ -5,13 +5,3 @@ Delivery Simulation Rule | Net Converted Quantity Divergence Tester
Delivery Simulation Rule | Specialise Divergence Tester Delivery Simulation Rule | Specialise Divergence Tester
Delivery Simulation Rule | String Divergence Tester Delivery Simulation Rule | String Divergence Tester
Delivery Simulation Rule | Variation Divergence Tester Delivery Simulation Rule | Variation Divergence Tester
Subscription Item Root Simulation Rule | Accounting Rule Cell
Subscription Item Root Simulation Rule | Category Membership Divergence Tester
Subscription Item Root Simulation Rule | DateTime Divergence Tester
Subscription Item Root Simulation Rule | Float Divergence Tester
Subscription Item Root Simulation Rule | Mapped Property
Subscription Item Root Simulation Rule | Net Converted Quantity Divergence Tester
Subscription Item Root Simulation Rule | Predicate
Subscription Item Root Simulation Rule | Specialise Divergence Tester
Subscription Item Root Simulation Rule | String Divergence Tester
Subscription Item Root Simulation Rule | Variation Divergence Tester
\ No newline at end of file
...@@ -2,5 +2,3 @@ Purchase Packing List | slapos_open_order_interaction_workflow ...@@ -2,5 +2,3 @@ Purchase Packing List | slapos_open_order_interaction_workflow
Slave Instance | instance_accounting_slap_interaction_workflow Slave Instance | instance_accounting_slap_interaction_workflow
Software Installation | installation_accounting_slap_interaction_workflow Software Installation | installation_accounting_slap_interaction_workflow
Software Instance | instance_accounting_slap_interaction_workflow Software Instance | instance_accounting_slap_interaction_workflow
Subscription Item Root Simulation Rule | edit_workflow
Subscription Item Root Simulation Rule | rule_validation_workflow
\ 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