Commit 592e3eae authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: define ConstraintMixin._checkConsistency

Without this, subclassing defining this method will have arguments-differ
pylint warning because the signature of Base._checkConsistency is
different.
parent ca05b59a
...@@ -93,6 +93,11 @@ class ConstraintMixin(IdAsReferenceMixin('_constraint'), Predicate): ...@@ -93,6 +93,11 @@ class ConstraintMixin(IdAsReferenceMixin('_constraint'), Predicate):
return self._checkConsistency(obj, fixit, **kw) return self._checkConsistency(obj, fixit, **kw)
def _checkConsistency(self, obj, fixit=0, **kw):
"""Implementation of constraint logic.
"""
raise NotImplementedError()
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'fixConsistency') 'fixConsistency')
def fixConsistency(self, obj, **kw): 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