Commit 4339fccf authored by Jérome Perrin's avatar Jérome Perrin

don't hide builtin name 'object'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97e3cc40
......@@ -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)):
......
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