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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
erp5
Commits
f9356bdf
Commit
f9356bdf
authored
Feb 27, 2020
by
Cédric Le Ninivin
Committed by
Klaus Wölfel
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matrix: Update Consistency Check to return Message
parent
6a80e392
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
product/ERP5Type/mixin/matrix.py
product/ERP5Type/mixin/matrix.py
+7
-4
No files found.
product/ERP5Type/mixin/matrix.py
View file @
f9356bdf
...
...
@@ -30,7 +30,9 @@ from Products.ERP5Type.Globals import InitializeClass, PersistentMapping
from
Acquisition
import
aq_base
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.ConsistencyMessage
import
ConsistencyMessage
from
Products.ERP5Type.Utils
import
cartesianProduct
,
INFINITE_SET
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
zLOG
import
LOG
...
...
@@ -480,12 +482,13 @@ class Matrix(object):
to_delete_set
=
set
()
error_list
=
[]
def
addError
(
error_message
):
error_message
=
"XMLMatrix inconsistency: "
+
error_message
if
fixit
:
error_message
+=
' (fixed)'
error
=
(
self
.
getRelativeUrl
()
,
'XMLMatrix inconsistency'
,
102
,
error_message
)
error
=
ConsistencyMessage
(
self
,
object_relative_url
=
self
.
getRelativeUrl
()
,
message
=
error_message
,
mapping
=
{}
)
error_list
.
append
(
error
)
...
...
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