Source

trac-gviz / trac-dev / gviz / tracgviz / gvizql.py

Diff from to

File trac-dev/gviz/tracgviz/gvizql.py

   """
   GVIZ_QL_KEYWS = [k for ct in GVizQLClauseType.iterparse() \
                         for k in ct.KEYWORDS]
-  GVIZ_QL_OPS = 'and or is not'.split()
+  GVIZ_QL_OPS = 'and,or,is,not,contains,starts with,ends with,matches,' \
+        'like'.split(',')
   GVIZ_QL_FUNCS = 'max min count avg sum'.split()
   GVIZ_QL_CPREF = 'date datetime timeofday timestamp'.split()
   GVIZ_QL_CONST = 'true false null'.split()
                             extraglobs=dict(parse=parse),
                             optionflags=ELLIPSIS \
                                         | NORMALIZE_WHITESPACE \
-#                                        | REPORT_UDIFF \
+                                        | REPORT_UDIFF \
                           )])
   return l.loadTestsFromModule(sys.modules[__name__])