From ce90aa0dae0f0ae3c24d17df1a1516414ed516ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 21 Apr 2006 21:28:19 +0000 Subject: [PATCH] remove _checkPropertiesAttributes, it was never called git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6858 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Constraint/PropertyTypeValidity.py | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/product/ERP5Type/Constraint/PropertyTypeValidity.py b/product/ERP5Type/Constraint/PropertyTypeValidity.py index 87cbc98beb..62e12bca23 100644 --- a/product/ERP5Type/Constraint/PropertyTypeValidity.py +++ b/product/ERP5Type/Constraint/PropertyTypeValidity.py @@ -54,35 +54,12 @@ class PropertyTypeValidity(Constraint): 'date': (type(DateTime()), ), } - def _checkPropertiesAttributes(self): - """ - Make sure instance has no _properties - """ - # XXX FIXME what is _properties ? - errors = [] - if '_properties' in object.__dict__: - # Remove _properties - error_message = "Instance has local _properties property" - if fixit: - local_properties = object._properties - del object._properties - object._local_properties = [] - class_property_ids = object.propertyIds() - for p in local_properties: - if p['id'] not in class_property_ids: - object._local_properties.append(p) - error_message += " (Fixed)" - errors.append(self._generateError(object, error_message)) - return errors - def checkConsistency(self, object, fixit=0): """ This is the check method, we return a list of string, each string corresponds to an error. """ errors = [] - # XXX FIXME Is this still useful ? - errors.extend(self._checkPropertiesAttributes()) # For each attribute name, we check type for property in object.propertyMap(): property_id = property['id'] -- 2.30.9