Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
ea5810d2
Commit
ea5810d2
authored
May 03, 2017
by
Nicolas Wavrant
Committed by
Eteri
Oct 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_upgrader: no need to call activeSense in activities in Alarm_runFullUpgrader
parent
7987f8fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
...eItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
+28
-16
No files found.
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Alarm_runFullUpgrader.py
View file @
ea5810d2
...
...
@@ -15,27 +15,39 @@ post_upgrade_tag = '%s-postupgrade' % tag
active_process
=
context
.
newActiveProcess
()
portal_alarms
.
upgrader_check_pre_upgrade
.
activate
(
activity
=
'SQLQueue'
,
tag
=
pre_upgrade_tag
,
).
activeSense
(
fixit
=
fixit
,
params
=
{
'tag'
:
pre_upgrade_tag
})
portal_alarms
.
upgrader_check_upgrader
.
activate
(
activity
=
'SQLQueue'
,
tag
=
upgrade_tag
,
after_tag
=
pre_upgrade_tag
,
).
activeSense
(
fixit
=
fixit
,
params
=
{
'tag'
:
upgrade_tag
})
portal_alarms
.
upgrader_check_pre_upgrade
.
activeSense
(
fixit
=
fixit
,
activate_kw
=
{
'activity'
:
'SQLQueue'
,
'tag'
:
pre_upgrade_tag
,
},
params
=
{
'tag'
:
pre_upgrade_tag
},
)
portal_alarms
.
upgrader_check_upgrader
.
activeSense
(
fixit
=
fixit
,
activate_kw
=
{
'activity'
:
'SQLQueue'
,
'tag'
:
upgrade_tag
,
'after_tag'
:
pre_upgrade_tag
,
},
params
=
{
'tag'
:
upgrade_tag
},
)
if
fixit
:
portal_alarms
.
upgrader_check_post_upgrade
.
activate
(
activity
=
'SQLQueue'
,
tag
=
post_upgrade_tag
,
after_tag
=
upgrade_tag
,
).
activeSense
(
fixit
=
fixit
,
params
=
{
'tag'
:
post_upgrade_tag
})
portal_alarms
.
upgrader_check_post_upgrade
.
activeSense
(
fixit
=
fixit
,
activate_kw
=
{
'activity'
:
'SQLQueue'
,
'tag'
:
post_upgrade_tag
,
'after_tag'
:
upgrade_tag
,
},
params
=
{
'tag'
:
post_upgrade_tag
},
)
# start another activity to collect the results from each upgrader step
context
.
activate
(
after_tag
=
post_upgrade_tag
).
Alarm_postFullUpgradeNeed
(
context
.
activate
(
after_tag
=
(
upgrade_tag
,
post_upgrade_tag
)
).
Alarm_postFullUpgradeNeed
(
active_process
=
active_process
.
getRelativeUrl
())
# Nothing else to do, so we can disable.
...
...
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