예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
파일: aliases.py 프로젝트: wflk/kitty
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)
예제 #6
0
파일: aliases.py 프로젝트: wflk/kitty
def Lesser(field, comp_value):
    '''
    Condition applies if the value of the field is lesser than the comp_value
    '''
    return Compare(field, '<', comp_value)
예제 #7
0
파일: aliases.py 프로젝트: wflk/kitty
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)
예제 #8
0
파일: aliases.py 프로젝트: wflk/kitty
def Greater(field, comp_value):
    '''
    Condition applies if the value of the field is greater than the comp_value
    '''
    return Compare(field, '>', comp_value)
예제 #9
0
파일: aliases.py 프로젝트: wflk/kitty
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)