[Erp5-report] r20147 - /erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 26 15:02:21 CET 2008


Author: jerome
Date: Wed Mar 26 15:02:19 2008
New Revision: 20147

URL: http://svn.erp5.org?rev=20147&view=rev
Log:
don't hide builtin name 'object'

Modified:
    erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py

Modified: erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py?rev=20147&r1=20146&r2=20147&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py (original)
+++ erp5/trunk/products/ERP5Type/Constraint/ContentExistence.py Wed Mar 26 15:02:19 2008
@@ -47,16 +47,15 @@
   message_no_subobject_portal_type = "The document does not contain any"\
                    " subobject of portal portal type ${portal_type}"
 
-  def checkConsistency(self, object, fixit=0):
+  def checkConsistency(self, obj, fixit=0):
     """
       This is the check method, we return a list of string,
       each string corresponds to an error.
       We are checking that object contains a subobject.
     """
     from Products.ERP5Type.Message import Message
-    obj = object
     error_list = []
-    if self._checkConstraintCondition(object):
+    if self._checkConstraintCondition(obj):
       # Retrieve configuration values from PropertySheet (_constraints)
       portal_type = self.constraint_definition.get('portal_type', ())
       if not len(obj.contentValues(portal_type=portal_type)):




More information about the Erp5-report mailing list