web/views/basecontrollers.py
branchstable
changeset 6237 0c886f667b1f
parent 6207 c3f11fadf9ed
child 6238 2f5ebeb7665d
--- 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: