web/views/magicsearch.py
changeset 7990 a673d1d9a738
parent 7815 2a164a9cf81c
child 8505 dcd9bc1d1bca
equal deleted inserted replaced
7989:db76e8aaec29 7990:a673d1d9a738
   390         except Exception:
   390         except Exception:
   391             # use processor chain
   391             # use processor chain
   392             unauthorized = None
   392             unauthorized = None
   393             for proc in self.processors:
   393             for proc in self.processors:
   394                 try:
   394                 try:
   395                     try:
   395                     return proc.process_query(uquery)
   396                         return proc.process_query(uquery)
       
   397                     except TypeError, exc: # cw 3.5 compat
       
   398                         warn("[3.6] %s.%s.process_query() should now accept uquery "
       
   399                              "as unique argument, use self._cw instead of req"
       
   400                              % (proc.__module__, proc.__class__.__name__),
       
   401                              DeprecationWarning)
       
   402                         return proc.process_query(uquery, self._cw)
       
   403                 # FIXME : we don't want to catch any exception type here !
   396                 # FIXME : we don't want to catch any exception type here !
   404                 except (RQLSyntaxError, BadRQLQuery):
   397                 except (RQLSyntaxError, BadRQLQuery):
   405                     pass
   398                     pass
   406                 except Unauthorized, ex:
   399                 except Unauthorized, ex:
   407                     unauthorized = ex
   400                     unauthorized = ex