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
Titouan Soulard
slapos.core
Commits
7aee2462
Commit
7aee2462
authored
Jun 22, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: use Base_reindexAndSenseAlarm
parent
3287cfd4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
7 additions
and
207 deletions
+7
-207
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Alarm_safeTrigger.py
...counting_interaction_workflow/script_Alarm_safeTrigger.py
+0
-2
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Alarm_safeTrigger.xml
...ounting_interaction_workflow/script_Alarm_safeTrigger.xml
+0
-86
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Base_triggerArchiveOpenSaleOrderAlarm.py
..._workflow/script_Base_triggerArchiveOpenSaleOrderAlarm.py
+1
-6
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Base_triggerSubscriptionBlockedAlarm.py
...n_workflow/script_Base_triggerSubscriptionBlockedAlarm.py
+1
-7
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Alarm_safeTrigger.py
...mulation_interaction_workflow/script_Alarm_safeTrigger.py
+0
-2
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Alarm_safeTrigger.xml
...ulation_interaction_workflow/script_Alarm_safeTrigger.xml
+0
-74
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposManageBuildingCalculatingDelivery.py
...pt_Base_triggerSlaposManageBuildingCalculatingDelivery.py
+1
-6
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposStopConfirmedAggregatedSaleInvoiceTransaction.py
...gerSlaposStopConfirmedAggregatedSaleInvoiceTransaction.py
+1
-6
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposTriggerBuild.py
...raction_workflow/script_Base_triggerSlaposTriggerBuild.py
+1
-6
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposUpdateDeliverySimulation.py
...flow/script_Base_triggerSlaposUpdateDeliverySimulation.py
+1
-6
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerUpdateOpenOrderSimulation.py
..._workflow/script_Base_triggerUpdateOpenOrderSimulation.py
+1
-6
No files found.
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Alarm_safeTrigger.py
deleted
100644 → 0
View file @
3287cfd4
if
alarm
.
getParentValue
().
isSubscribed
()
and
not
alarm
.
isActive
()
and
alarm
.
isEnabled
():
alarm
.
activate
(
queue
=
'SQLQueue'
,
**
activate_kw
).
activeSense
()
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Alarm_safeTrigger.xml
deleted
100644 → 0
View file @
3287cfd4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
alarm, activate_kw
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_Alarm_safeTrigger
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Script
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Base_triggerArchiveOpenSaleOrderAlarm.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_archive_open_sale_order_with_unused_item
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_archive_open_sale_order_with_unused_item'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/script_Base_triggerSubscriptionBlockedAlarm.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_assert_instance_tree_successor
,
{
'after_tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_allocate_instance
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_assert_instance_tree_successor'
,
'slapos_allocate_instance'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Alarm_safeTrigger.py
deleted
100644 → 0
View file @
3287cfd4
if
alarm
.
getParentValue
().
isSubscribed
()
and
not
alarm
.
isActive
()
and
alarm
.
isEnabled
():
alarm
.
activate
(
queue
=
'SQLQueue'
,
**
activate_kw
).
activeSense
()
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Alarm_safeTrigger.xml
deleted
100644 → 0
View file @
3287cfd4
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
alarm, activate_kw
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_Alarm_safeTrigger
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposManageBuildingCalculatingDelivery.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_manage_building_calculating_delivery
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_manage_building_calculating_delivery'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposStopConfirmedAggregatedSaleInvoiceTransaction.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_stop_confirmed_aggregated_sale_invoice_transaction
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_stop_confirmed_aggregated_sale_invoice_transaction'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposTriggerBuild.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_trigger_build
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_trigger_build'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerSlaposUpdateDeliverySimulation.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
slapos_update_delivery_simulation
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'slapos_update_delivery_simulation'
])
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_simulation_interaction_workflow/script_Base_triggerUpdateOpenOrderSimulation.py
View file @
7aee2462
base
=
state_change
[
'object'
]
portal
=
base
.
getPortalObject
()
tag
=
script
.
id
base
.
reindexObject
(
activate_kw
=
{
'tag'
:
tag
})
context
.
Alarm_safeTrigger
(
portal
.
portal_alarms
.
update_open_order_simulation
,
{
'after_tag'
:
tag
})
return
state_change
[
'object'
].
Base_reindexAndSenseAlarm
([
'update_open_order_simulation'
])
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