From 0efe7dbf9e8573b8beeb57a92ef9ae4e162477ab Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 29 Apr 2010 12:24:49 +0000
Subject: [PATCH] allow extra parameters in fixConsistency() and
 checkConsistency().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34855 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Constraint/Constraint.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/Constraint/Constraint.py b/product/ERP5Type/Constraint/Constraint.py
index af760513a9..18139e94b4 100644
--- a/product/ERP5Type/Constraint/Constraint.py
+++ b/product/ERP5Type/Constraint/Constraint.py
@@ -101,17 +101,17 @@ class Constraint:
           return 0 # a condition was defined and is False
       return 1 # no condition or a True condition was defined
 
-    def checkConsistency(self, obj, fixit=0):
+    def checkConsistency(self, obj, fixit=0, **kw):
       """
         Default method is to return no error.
       """
       errors = []
       return errors
 
-    def fixConsistency(self, obj):
+    def fixConsistency(self, obj, **kw):
       """
         Default method is to call checkConsistency with
         fixit set to 1
       """
-      return self.checkConsistency(obj, fixit=1)
+      return self.checkConsistency(obj, fixit=1, **kw)
 
-- 
2.30.9