[selectors] take care, Session has no cnx stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 30 May 2011 17:43:29 +0200
branchstable
changeset 7448 195b24fe3a03
parent 7443 c10164464afc
child 7449 5e45e32071aa
[selectors] take care, Session has no cnx
selectors.py
--- a/selectors.py	Thu May 26 18:24:41 2011 +0200
+++ b/selectors.py	Mon May 30 17:43:29 2011 +0200
@@ -1342,7 +1342,7 @@
 
     @lltrace
     def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs):
-        if not req.cnx:
+        if getattr(req, 'cnx', True): # default to True for repo session instances
             return 0
         user = req.user
         if user is None: