(self, value)
Checks whether a value is list of given validation_function.
        Returns list of validated values or just one valid value in
        list if there is only one element in given CSV string.
Checks whether a value is list of given validation_function.
        Returns list of validated values or just one valid value in
        list if there is only one element in given CSV string.
Checks whether a value is list of given validation_function . Returns list of validated values or just one valid value in list if there is only one element in given CSV string .
def __call__(self, value):
        '''
        Checks whether a value is list of given validation_function.
        Returns list of validated values or just one valid value in
        list if there is only one element in given CSV string.
        '''
        try:
            if isinstance(value, basestring):
                if self.separator in value:
                    seperated_string_values =[item.strip() for item
                        in value.split(self.separator)]
                    values = [self.validation_function(item) for item
                        in seperated_string_values]
                else:
                    values = [self.validation_function(value)]
                return values
            else:
                raise ValueError
        except (Invalid, ValueError) as e:
            raise Invalid(self.msg or
                ('<{0}> is not valid set of <{1}>, {2}'.format(
                    value,
                    self.value_type,
                        e)))
def __call__ ( self , value ) : try : if isinstance ( value , basestring ) : if self . separator in value : seperated_string_values = [ item . strip ( ) for item in value . split ( self . separator ) ] values = [ self . validation_function ( item ) for item in seperated_string_values ] else : values = [ self . validation_function ( value ) ] return values else : raise ValueError except ( Invalid , ValueError ) as e : raise Invalid ( self . msg or ( '<{0}> is not valid set of <{1}>, {2}' . format ( value , self . value_type , e ) ) )