

def filtered_out(self, item, filters):
    if (filters is None):
        return False
    for filter in filters:
        filter_name = self.FILTER_MAP.get(filter['name'])
        if (filter_name is None):
            raise exception.InvalidParameterValue(value=filter['name'], parameter='filter', reason='invalid filter')
        values = self.get_values_by_filter(filter_name, item)
        if (not values):
            return True
        filter_values = filter['value']
        for filter_value in filter_values:
            if any((self.is_filtering_value_found(filter_value, value) for value in values)):
                break
        else:
            return True
    return False

dataset/ETHPy150Open openstack/ec2-api/ec2api/api/common.py UniversalDescriber.filtered_out/original