From 4339fccfb3e392ea6cde07f9ae9a4ab35e87ab8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 26 Mar 2008 14:02:19 +0000
Subject: [PATCH] don't hide builtin name 'object'

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

diff --git a/product/ERP5Type/Constraint/ContentExistence.py b/product/ERP5Type/Constraint/ContentExistence.py
index 73bbb7dd91..e133e64499 100644
--- a/product/ERP5Type/Constraint/ContentExistence.py
+++ b/product/ERP5Type/Constraint/ContentExistence.py
@@ -47,16 +47,15 @@ class ContentExistence(Constraint):
   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)):
-- 
2.30.9