fix wrong answer when the rset is empty but did not raise stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 03 Nov 2009 13:52:25 +0100
branchstable
changeset 3792 8d0b5de8002b
parent 3791 62d6ab877694
child 3793 ab776b2833cb
child 3813 5b6eb3d6bf7c
fix wrong answer when the rset is empty but did not raise
entities/authobjs.py
--- a/entities/authobjs.py	Tue Nov 03 11:19:10 2009 +0100
+++ b/entities/authobjs.py	Tue Nov 03 13:52:25 2009 +0100
@@ -114,9 +114,11 @@
             kwargs['x'] = contexteid
             cachekey = 'x'
         try:
-            return self.req.execute(rql, kwargs, cachekey)
+            self.req.execute(rql, kwargs, cachekey)
         except Unauthorized:
             return False
+        else:
+            return True
 
     # presentation utilities ##################################################