Esempio n. 1
0
def LesserEqual(field, comp_value):
    '''
    Condition applies if the value of the field is lesser than or equals to the comp_value

    :rtype: :class:`~kitty.model.low_level.condition.Compare`
    '''
    return Compare(field, '<=', comp_value)
Esempio n. 2
0
def BitMaskNotSet(field, comp_value):
    '''
    Condition applies if the given bitmask is equal to 0 in the value of the field

    :rtype: :class:`~kitty.model.low_level.condition.Compare`
    '''
    return Compare(field, '&=0', comp_value)
Esempio n. 3
0
def NotEqual(field, comp_value):
    '''
    Condition applies if the value of the field is not equal to the comp_value

    :rtype: :class:`~kitty.model.low_level.condition.Compare`
    '''
    return Compare(field, '!=', comp_value)
Esempio n. 4
0
def Greater(field, comp_value):
    '''
    Condition applies if the value of the field is greater than the comp_value

    :rtype: :class:`~kitty.model.low_level.condition.Compare`
    '''
    return Compare(field, '>', comp_value)
Esempio n. 5
0
def LesserEqual(field, comp_value):
    '''
    Condition applies if the value of the field is lesser than or equals to the comp_value
    '''
    return Compare(field, '<=', comp_value)
Esempio n. 6
0
def Lesser(field, comp_value):
    '''
    Condition applies if the value of the field is lesser than the comp_value
    '''
    return Compare(field, '<', comp_value)
Esempio n. 7
0
def GreaterEqual(field, comp_value):
    '''
    Condition applies if the value of the field is greater than or equals to the comp_value
    '''
    return Compare(field, '>=', comp_value)
Esempio n. 8
0
def Greater(field, comp_value):
    '''
    Condition applies if the value of the field is greater than the comp_value
    '''
    return Compare(field, '>', comp_value)
Esempio n. 9
0
def NotEqual(field, comp_value):
    '''
    Condition applies if the value of the field is not equal to the comp_value
    '''
    return Compare(field, '!=', comp_value)