(self, obj, fixit=0)
return error_list
Check the object's consistency.
      We will make sure that each non None constraint_definition is
      satisfied
Check the object's consistency.
      We will make sure that each non None constraint_definition is
      satisfied
Check the object s consistency . We will make sure that each non None constraint_definition is satisfied
def _checkConsistency(self, obj, fixit=0):
    """Check the object's consistency.
      We will make sure that each non None constraint_definition is
      satisfied
    """
    error_list = PropertyExistenceConstraint._checkConsistency(
                                                   self, obj, fixit=fixit)
    blacklisted_list_expression = self.getBlacklistedList()
    expression_context = createExpressionContext(obj)
    blacklisted_list = evaluateExpressionFromString(expression_context,
                                                    blacklisted_list_expression)
    message_id = 'message_invalid_attribute_blacklisted'
    for property_id in self.getConstraintPropertyList():

      value = obj.getProperty(property_id)
      if value in blacklisted_list:
        mapping = dict(attribute_name=property_id)
        # Generate error
        error_list.append(self._generateError(obj,
                                              self._getMessage(message_id),
                                              mapping=mapping)
                         )
    return error_list
def _checkConsistency ( self , obj , fixit = 0 ) : error_list = PropertyExistenceConstraint . _checkConsistency ( self , obj , fixit = fixit ) blacklisted_list_expression = self . getBlacklistedList ( ) expression_context = createExpressionContext ( obj ) blacklisted_list = evaluateExpressionFromString ( expression_context , blacklisted_list_expression ) message_id = 'message_invalid_attribute_blacklisted' for property_id in self . getConstraintPropertyList ( ) : value = obj . getProperty ( property_id ) if value in blacklisted_list : mapping = dict ( attribute_name = property_id ) # Generate error error_list . append ( self . _generateError ( obj , self . _getMessage ( message_id ) , mapping = mapping ) ) return error_list