web/views/basecontrollers.py
changeset 6225 a176e68b7d0d
parent 6140 65a619eb31c4
parent 6207 c3f11fadf9ed
child 6279 42079f752a9c
--- a/web/views/basecontrollers.py	Tue Sep 07 17:34:42 2010 +0200
+++ b/web/views/basecontrollers.py	Mon Sep 13 15:15:21 2010 +0200
@@ -291,7 +291,8 @@
         try:
             args = [json.loads(arg) for arg in args]
         except ValueError, exc:
-            self.exception('error while decoding json arguments for js_%s: %s', fname, args, exc)
+            self.exception('error while decoding json arguments for js_%s: %s',
+                           fname, args, exc)
             raise RemoteCallFailed(repr(exc))
         try:
             result = func(*args)
@@ -433,7 +434,7 @@
     def js_render(self, registry, oid, eid=None, selectargs=None, renderargs=None):
         if eid is not None:
             rset = self._cw.eid_rset(eid)
-        elif 'rql' in self._cw.form:
+        elif self._cw.form.get('rql'):
             rset = self._cw.execute(self._cw.form['rql'])
         else:
             rset = None