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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
00474f17
Commit
00474f17
authored
Oct 13, 2021
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_upgrader: post upgrade alarm list all issues even when not solving
parent
fa57f12e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Base_postCheckConsistencyResult.py
...al_skins/erp5_upgrader/Base_postCheckConsistencyResult.py
+2
-7
No files found.
bt5/erp5_upgrader/SkinTemplateItem/portal_skins/erp5_upgrader/Base_postCheckConsistencyResult.py
View file @
00474f17
active_process
=
context
.
getPortalObject
().
restrictedTraverse
(
active_process
)
# We don't need check more if something is already inconsistent
if
active_process
.
ActiveProcess_sense
()
and
not
fixit
:
return
with
context
.
defaultActivateParameterDict
(
activate_kw
,
placeless
=
True
):
with
context
.
defaultActivateParameterDict
(
activate_kw
,
placeless
=
True
):
constraint_message_list
=
context
.
checkConsistency
(
constraint_message_list
=
context
.
checkConsistency
(
fixit
=
fixit
,
filter
=
filter_dict
,)
fixit
=
fixit
,
filter
=
filter_dict
,)
if
constraint_message_list
and
not
active_process
.
getResultList
():
if
constraint_message_list
:
active_process
=
context
.
getPortalObject
().
restrictedTraverse
(
active_process
)
active_process
.
postActiveResult
(
active_process
.
postActiveResult
(
severity
=
0
if
fixit
else
1
,
severity
=
0
if
fixit
else
1
,
summary
=
"%s Consistency - At least one inconsistent object found"
%
(
'Fix'
if
fixit
else
'Check'
,
),
summary
=
"%s Consistency - At least one inconsistent object found"
%
(
'Fix'
if
fixit
else
'Check'
,
),
...
...
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