Revision ad48eacc lib/qlang.py

b/lib/qlang.py
58 58
# operator-specific value
59 59
OP_EQUAL = "="
60 60
OP_NOT_EQUAL = "!="
61
OP_LT = "<"
62
OP_LE = "<="
63
OP_GT = ">"
64
OP_GE = ">="
61 65
OP_REGEXP = "=~"
62 66
OP_CONTAINS = "=[]"
63 67

  
64 68

  
65 69
#: Characters used for detecting user-written filters (see L{_CheckFilter})
66
FILTER_DETECTION_CHARS = frozenset("()=/!~'\"\\" + string.whitespace)
70
FILTER_DETECTION_CHARS = frozenset("()=/!~'\"\\<>" + string.whitespace)
67 71

  
68 72
#: Characters used to detect globbing filters (see L{_CheckGlobbing})
69 73
GLOB_DETECTION_CHARS = frozenset("*?")
......
165 169
  binopstbl = {
166 170
    "==": OP_EQUAL,
167 171
    "!=": OP_NOT_EQUAL,
172
    "<": OP_LT,
173
    "<=": OP_LE,
174
    ">": OP_GT,
175
    ">=": OP_GE,
168 176
    }
169 177

  
170 178
  binary_cond = (field_name + pyp.oneOf(binopstbl.keys()) + rval)

Also available in: Unified diff