Пример #1
0
    def validate(self, value, row_number=None, source=''):
        errors = []

        ## iterate list of values and use the concept validation on each one
        validate_concept = DataTypeFactory().get_instance('concept')
        for v in value:
            val = v.strip()
            errors += validate_concept.validate(val, row_number)
        return errors
Пример #2
0
    def validate(self, value, row_number=None, source=''):
        errors = []

        ## iterate list of values and use the concept validation on each one
        validate_concept = DataTypeFactory().get_instance('concept')
        for v in value:
            val = v.strip()
            errors += validate_concept.validate(val, row_number)
        return errors
Пример #3
0
    def validate(self, value, row_number=None, source="", node=None, nodeid=None):
        errors = []

        # iterate list of values and use the concept validation on each one
        if value is not None:
            validate_concept = DataTypeFactory().get_instance("concept")
            for v in value:
                val = v.strip()
                errors += validate_concept.validate(val, row_number)
        return errors