use '=', '<' and '>' as Compare arg of predicate

This commit is contained in:
eap 2006-12-28 08:47:03 +00:00
parent b6f248e8a6
commit 92a4c7bbbe

View File

@ -241,6 +241,12 @@ def GetCriterion(elementType,
if Compare in [FT_LessThan, FT_MoreThan, FT_EqualTo]: if Compare in [FT_LessThan, FT_MoreThan, FT_EqualTo]:
aCriterion.Compare = EnumToLong(Compare) aCriterion.Compare = EnumToLong(Compare)
elif Compare == "=" or Compare == "==":
aCriterion.Compare = EnumToLong(FT_EqualTo)
elif Compare == "<":
aCriterion.Compare = EnumToLong(FT_LessThan)
elif Compare == ">":
aCriterion.Compare = EnumToLong(FT_MoreThan)
else: else:
aCriterion.Compare = EnumToLong(FT_EqualTo) aCriterion.Compare = EnumToLong(FT_EqualTo)
aTreshold = Compare aTreshold = Compare