Commits

Anonymous committed 4d5e1f7

0.11-stable: Fixed a few unit-tests broken by r7445.

Comments (0)

Files changed (1)

trac/ticket/query.py

 
 
 class Query(object):
+    substitutions = ['$USER']
 
     def __init__(self, env, report=None, constraints=None, cols=None,
                  order=None, desc=0, group=None, groupdesc=0, verbose=0,
         self.groupdesc = groupdesc
         self.default_page = 1
         self.items_per_page = QueryModule(self.env).items_per_page
-        self.substitutions = ['$USER']
 
         # getting page number (default_page if unspecified)
         if not page:
             # from last char of `field`, get the mode of comparison
             mode, neg = '', ''
             if field[-1] in ('~', '^', '$') \
-                                and not field in self.substitutions:
+                                and not field in cls.substitutions:
                 mode = field[-1]
                 field = field[:-1]
             if field[-1] == '!':