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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
2df25beb
Commit
2df25beb
authored
Oct 13, 2021
by
Cédric Le Ninivin
Committed by
Titouan Soulard
Nov 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_upgrader: post upgrade alarm list all issues even when not solving
parent
ea1d2742
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 @
2df25beb
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
):
constraint_message_list
=
context
.
checkConsistency
(
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
(
severity
=
0
if
fixit
else
1
,
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