Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
92f39b78
Commit
92f39b78
authored
Apr 11, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update causality state in alarm.
parent
f4c1de3f
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
246 additions
and
15 deletions
+246
-15
master/bt5/vifib_base/PathTemplateItem/portal_alarms/vifib_expand_confirmed_sale_order.xml
...eItem/portal_alarms/vifib_expand_confirmed_sale_order.xml
+1
-1
master/bt5/vifib_base/PathTemplateItem/portal_alarms/vifib_update_delivery_causality_state.xml
...m/portal_alarms/vifib_update_delivery_causality_state.xml
+91
-0
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/Alarm_updateCausalityState.xml
...tal_skins/vifib_simulation/Alarm_updateCausalityState.xml
+78
-0
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/Delivery_updateCausalityState.xml
..._skins/vifib_simulation/Delivery_updateCausalityState.xml
+72
-0
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml
...fib_simulation/VifibInvoiceTransaction_postGeneration.xml
+0
-2
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibPaymentTransaction_postGeneration.xml
...fib_simulation/VifibPaymentTransaction_postGeneration.xml
+0
-4
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibSalePackingList_postGeneration.xml
.../vifib_simulation/VifibSalePackingList_postGeneration.xml
+0
-4
master/bt5/vifib_base/bt/revision
master/bt5/vifib_base/bt/revision
+1
-1
master/bt5/vifib_base/bt/template_path_list
master/bt5/vifib_base/bt/template_path_list
+2
-1
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/Person_createRegistrationInvoice.xml
...ion_workflow/scripts/Person_createRegistrationInvoice.xml
+0
-1
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_base/PathTemplateItem/portal_alarms/vifib_expand_confirmed_sale_order.xml
View file @
92f39b78
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
3060817
20.0
</float>
<float>
5751313
20.0
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/vifib_base/PathTemplateItem/portal_alarms/vifib_update_delivery_causality_state.xml
0 → 100644
View file @
92f39b78
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Alarm"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
Alarm_updateCausalityState
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
vifib_update_delivery_causality_state
</string>
</value>
</item>
<item>
<key>
<string>
periodicity_hour
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_minute
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_minute_frequency
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
periodicity_month
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_month_day
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
periodicity_start_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
323620920.0
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
periodicity_week
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Alarm
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Updates delivery\'s causality state
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/Alarm_updateCausalityState.xml
0 → 100644
View file @
92f39b78
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
activate_kw = {\n
\'tag\': tag\n
}\n
portal.portal_catalog.searchAndActivate(\n
portal_type=portal.getPortalDeliveryTypeList(),\n
causality_state=\'calculating\',\n
activate_kw=activate_kw,\n
packet_size=1, # Separate calls to many transactions\n
method_id=\'Delivery_updateCausalityState\'\n
)\n
context.activate(after_tag=tag).getId()\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
tag, fixit, params
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Alarm_updateCausalityState
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/Delivery_updateCausalityState.xml
0 → 100644
View file @
92f39b78
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
delivery = context\n
if delivery.getCausalityState() != \'calculating\':\n
return\n
\n
if context.getPortalObject().portal_activities.countMessage(path=delivery.getPath()) == 0:\n
delivery.updateCausalityState()\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Delivery_updateCausalityState
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibInvoiceTransaction_postGeneration.xml
View file @
92f39b78
...
@@ -88,10 +88,8 @@ if modified:\n
...
@@ -88,10 +88,8 @@ if modified:\n
specialise_list.sort()\n
specialise_list.sort()\n
invoice.setSpecialiseList(specialise_list)\n
invoice.setSpecialiseList(specialise_list)\n
\n
\n
# Update causality workflow\n
if invoice.getPortalObject().portal_workflow.isTransitionPossible(invoice, \'start_building\'):\n
if invoice.getPortalObject().portal_workflow.isTransitionPossible(invoice, \'start_building\'):\n
invoice.startBuilding()\n
invoice.startBuilding()\n
invoice.updateCausalityState()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibPaymentTransaction_postGeneration.xml
View file @
92f39b78
...
@@ -65,10 +65,6 @@ if payment_transaction.getStartDate() is None:\n
...
@@ -65,10 +65,6 @@ if payment_transaction.getStartDate() is None:\n
# First set the payment transaction in the building state on the causality workflow\n
# First set the payment transaction in the building state on the causality workflow\n
payment_transaction.startBuilding()\n
payment_transaction.startBuilding()\n
\n
\n
# Then an activity should put the causality state in diverged or solved\n
payment_transaction.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).updateCausalityState()\n
\n
# update casuality from movements\n
# update casuality from movements\n
causality_list = payment_transaction.getCausalityList()\n
causality_list = payment_transaction.getCausalityList()\n
causality_list.sort()\n
causality_list.sort()\n
...
...
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibSalePackingList_postGeneration.xml
View file @
92f39b78
...
@@ -71,10 +71,6 @@ packing_list.activate(after_path_and_method_id=(related_simulation_movement_path
...
@@ -71,10 +71,6 @@ packing_list.activate(after_path_and_method_id=(related_simulation_movement_path
\n
\n
# First set the packing_list in the building state\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\n
packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
after_tag=confirm_tag).updateCausalityState()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/vifib_base/bt/revision
View file @
92f39b78
425
426
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_base/bt/template_path_list
View file @
92f39b78
portal_alarms/vifib_expand_confirmed_sale_order
portal_alarms/vifib_expand_confirmed_sale_order
portal_alarms/vifib_expand_delivery_line
portal_alarms/vifib_expand_delivery_line
portal_alarms/vifib_update_delivery_causality_state
\ No newline at end of file
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/Person_createRegistrationInvoice.xml
View file @
92f39b78
...
@@ -92,7 +92,6 @@ if invoice_line is None:\n
...
@@ -92,7 +92,6 @@ if invoice_line is None:\n
\n
\n
# force tracking causality state\n
# force tracking causality state\n
invoice.startBuilding()\n
invoice.startBuilding()\n
invoice.updateCausalityState()\n
invoice.plan(**kw)\n
invoice.plan(**kw)\n
invoice.confirm(**kw)\n
invoice.confirm(**kw)\n
</string>
</value>
</string>
</value>
...
...
master/bt5/vifib_slap/bt/revision
View file @
92f39b78
691
692
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment