web/views/basecontrollers.py
changeset 2792 135580d15d42
parent 2681 eda37d59f6d4
child 2867 e8581a4f1bae
--- a/web/views/basecontrollers.py	Thu Aug 13 09:23:22 2009 +0200
+++ b/web/views/basecontrollers.py	Thu Aug 13 09:30:03 2009 +0200
@@ -290,7 +290,7 @@
     def _exec(self, rql, args=None, eidkey=None, rocheck=True):
         """json mode: execute RQL and return resultset as json"""
         if rocheck:
-            self.ensure_ro_rql(rql)
+            self.req.ensure_ro_rql(rql)
         try:
             return self.req.execute(rql, args, eidkey)
         except Exception, ex: