src/manageiq_client/filters.py
def gen_filter(name, op, value, is_or=False):
    """Generates a single filter expression for ``filter[]``."""
    if op not in OPERATORS:
        raise ValueError('Unknown operator {}'.format(op))
    result = u'{} {} {}'.format(name, op, escape_filter(value))
    if is_or:
        result = u'or ' + result
    return result
def gen_filter(name, op, value, is_or=False):
    """Generates a single filter expression for ``filter[]``."""
    if op not in OPERATORS:
        raise ValueError('Unknown operator {}'.format(op))
    result = u'{} {} {}'.format(name, op, escape_filter(value))
    if is_or:
        result = u'or ' + result
    return result
def gen_filter ( name , op , value , is_or = False ) : if op not in OPERATORS : raise ValueError ( 'Unknown operator {}' . format ( op ) ) result = u'{} {} {}' . format ( name , op , escape_filter ( value ) ) if is_or : result = u'or ' + result return result
Generates a single filter expression for ``filter[]``.
Generates a single filter expression for filter [] .