[Erp5-report] r6858 - /erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 21 23:28:24 CEST 2006
Author: jerome
Date: Fri Apr 21 23:28:19 2006
New Revision: 6858
URL: http://svn.erp5.org?rev=6858&view=rev
Log:
remove _checkPropertiesAttributes, it was never called
Modified:
erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py
Modified: erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py?rev=6858&r1=6857&r2=6858&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py (original)
+++ erp5/trunk/products/ERP5Type/Constraint/PropertyTypeValidity.py Fri Apr 21 23:28:19 2006
@@ -54,35 +54,12 @@
'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']
More information about the Erp5-report
mailing list