Fix conditionnal logic broken in 195b24fe3a03
195b24fe3a03 replace:
if not req.cnx:
by
if getattr(req, 'cnx', True):
The "not" diseapeared in the process.
--- 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: