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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
erp5
Commits
3a4a3296
Commit
3a4a3296
authored
Dec 03, 2013
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code because is not needed call fixConsistency twice
Also, consider the error list when fixit is False only
parent
779381f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+3
-3
No files found.
product/ERP5Type/Base.py
View file @
3a4a3296
...
...
@@ -2549,7 +2549,7 @@ class Base( CopyContainer,
error_list
=
UnrestrictedMethod
(
self
.
_checkConsistency
)(
fixit
=
fixit
)
if
len
(
error_list
)
>
0
:
try
:
self
.
_checkConsistency
(
fixit
=
fixit
)
self
.
_checkConsistency
()
except
Unauthorized
:
error_list
=
[
getUnauthorizedErrorMessage
(
self
)]
...
...
@@ -2565,8 +2565,8 @@ class Base( CopyContainer,
constraint_instance
.
checkConsistency
)(
self
,
**
kw
)
if
len
(
error_list2
)
>
0
:
try
:
if
fixit
:
constraint_instance
.
fix
Consistency
(
self
,
**
kw
)
if
not
fixit
:
extra_error_list
=
constraint_instance
.
check
Consistency
(
self
,
**
kw
)
else
:
constraint_instance
.
checkConsistency
(
self
,
**
kw
)
except
Unauthorized
:
...
...
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