add comparisons file missed in last commit

This commit is contained in:
Steve Pulec 2013-03-13 09:07:57 -04:00
parent 621ac79f33
commit 58ac6c44b0

View File

@ -0,0 +1,76 @@
COMPARISON_FUNCS = {
'EQ': lambda item_value, test_value: item_value == test_value,
'GT': lambda item_value, test_value: item_value > test_value
}
def get_comparison_func(range_comparison):
return COMPARISON_FUNCS.get(range_comparison)
# class EQ(ConditionOneArg):
# pass
# class NE(ConditionOneArg):
# pass
# class LE(ConditionOneArg):
# pass
# class LT(ConditionOneArg):
# pass
# class GE(ConditionOneArg):
# pass
# class GT(ConditionOneArg):
# pass
# class NULL(ConditionNoArgs):
# pass
# class NOT_NULL(ConditionNoArgs):
# pass
# class CONTAINS(ConditionOneArg):
# pass
# class NOT_CONTAINS(ConditionOneArg):
# pass
# class BEGINS_WITH(ConditionOneArg):
# pass
# class IN(ConditionOneArg):
# pass
# class BEGINS_WITH(ConditionOneArg):
# pass
# class BETWEEN(ConditionTwoArgs):
# pass