Commit a61995d3 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: define ConstraintMixin._checkConsistency

Without this, subclassing defining this method will have rguments-differ
pylint warning because the signature of Base._checkConsistency is
different.
parent 2b6b24d7
......@@ -93,6 +93,11 @@ class ConstraintMixin(IdAsReferenceMixin('_constraint'), Predicate):
return self._checkConsistency(obj, fixit, **kw)
def _checkConsistency(self, obj, fixit=0, **kw):
"""Implementation of constraint logic.
"""
raise NotImplementedError()
security.declareProtected(Permissions.AccessContentsInformation,
'fixConsistency')
def fixConsistency(self, obj, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment