Revision a847494c pithos/lib/filter.py

b/pithos/lib/filter.py
32 32
# or implied, of GRNET S.A.
33 33

  
34 34
import re
35
import operator
35

  
36 36

  
37 37
_regexfilter = re.compile('(!?)\s*(\S+?)\s*(?:(=|!=|<=|>=|<|>)\s*(\S*?)\s*)?$', re.UNICODE)
38 38

  
39
OPERATORS = {'=':operator.eq,
40
             '!=':operator.ne,
41
             '<=':operator.le,
42
             '>=':operator.ge,
43
             '<':operator.lt,
44
             '>':operator.gt
45
}
46 39

  
47 40
def parse_filters(terms):
48 41
    included = []

Also available in: Unified diff