# HG changeset patch # User Sylvain Thénault # Date 1284471521 -7200 # Node ID 0c886f667b1fec77049daa93db07f3279dfaebf3 # Parent 9138f23ee26318d7874d01de11648784ce4a0d55 [basecontroller] handle case where the query is prefixed by 'rql:' as allowed by the search input diff -r 9138f23ee263 -r 0c886f667b1f web/views/basecontrollers.py --- a/web/views/basecontrollers.py Tue Sep 14 15:37:32 2010 +0200 +++ b/web/views/basecontrollers.py Tue Sep 14 15:38:41 2010 +0200 @@ -334,6 +334,9 @@ def _exec(self, rql, args=None, rocheck=True): """json mode: execute RQL and return resultset as json""" + rql = rql.strip() + if rql.startswith('rql:'): + rql = rql[4:] if rocheck: self._cw.ensure_ro_rql(rql) try: