Fix conditionnal logic broken in 195b24fe3a03 stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 06 Jun 2011 15:00:05 +0200
branchstable
changeset 7452 7e8182a63559
parent 7451 48ba5f0c11de
child 7453 84046395d2cd
Fix conditionnal logic broken in 195b24fe3a03 195b24fe3a03 replace: if not req.cnx: by if getattr(req, 'cnx', True): The "not" diseapeared in the process.
selectors.py
--- a/selectors.py	Mon Jun 06 14:41:00 2011 +0200
+++ b/selectors.py	Mon Jun 06 15:00:05 2011 +0200
@@ -1342,7 +1342,7 @@
 
     @lltrace
     def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs):
-        if getattr(req, 'cnx', True): # default to True for repo session instances
+        if not getattr(req, 'cnx', True): # default to True for repo session instances
             return 0
         user = req.user
         if user is None: