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
Kasra Jamshidi
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
Show 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,
...
@@ -2549,7 +2549,7 @@ class Base( CopyContainer,
error_list
=
UnrestrictedMethod
(
self
.
_checkConsistency
)(
fixit
=
fixit
)
error_list
=
UnrestrictedMethod
(
self
.
_checkConsistency
)(
fixit
=
fixit
)
if
len
(
error_list
)
>
0
:
if
len
(
error_list
)
>
0
:
try
:
try
:
self
.
_checkConsistency
(
fixit
=
fixit
)
self
.
_checkConsistency
()
except
Unauthorized
:
except
Unauthorized
:
error_list
=
[
getUnauthorizedErrorMessage
(
self
)]
error_list
=
[
getUnauthorizedErrorMessage
(
self
)]
...
@@ -2565,8 +2565,8 @@ class Base( CopyContainer,
...
@@ -2565,8 +2565,8 @@ class Base( CopyContainer,
constraint_instance
.
checkConsistency
)(
self
,
**
kw
)
constraint_instance
.
checkConsistency
)(
self
,
**
kw
)
if
len
(
error_list2
)
>
0
:
if
len
(
error_list2
)
>
0
:
try
:
try
:
if
fixit
:
if
not
fixit
:
constraint_instance
.
fix
Consistency
(
self
,
**
kw
)
extra_error_list
=
constraint_instance
.
check
Consistency
(
self
,
**
kw
)
else
:
else
:
constraint_instance
.
checkConsistency
(
self
,
**
kw
)
constraint_instance
.
checkConsistency
(
self
,
**
kw
)
except
Unauthorized
:
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