-# Copyright 2011 GRNET S.A. All rights reserved.
+# Copyright 2011-2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# or implied, of GRNET S.A.
import re
-import operator
+
_regexfilter = re.compile('(!?)\s*(\S+?)\s*(?:(=|!=|<=|>=|<|>)\s*(\S*?)\s*)?$', re.UNICODE)
-OPERATORS = {'=':operator.eq,
- '!=':operator.ne,
- '<=':operator.le,
- '>=':operator.ge,
- '<':operator.lt,
- '>':operator.gt
-}
def parse_filters(terms):
included = []