[Erp5-report] r34855 kazuhiko - /erp5/trunk/products/ERP5Type/Constraint/Constraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 29 14:24:51 CEST 2010
Author: kazuhiko
Date: Thu Apr 29 14:24:49 2010
New Revision: 34855
URL: http://svn.erp5.org?rev=34855&view=rev
Log:
allow extra parameters in fixConsistency() and checkConsistency().
Modified:
erp5/trunk/products/ERP5Type/Constraint/Constraint.py
Modified: erp5/trunk/products/ERP5Type/Constraint/Constraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/Constraint.py?rev=34855&r1=34854&r2=34855&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] Thu Apr 29 14:24:49 2010
@@ -101,17 +101,17 @@
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)
More information about the Erp5-report
mailing list