# HG changeset patch # User Pierre-Yves David # Date 1307365205 -7200 # Node ID 7e8182a635594fd08a8e22c9491509099b14e98d # Parent 48ba5f0c11de2cd875f87ef1edd27df4fed863da Fix conditionnal logic broken in 195b24fe3a03 195b24fe3a03 replace: if not req.cnx: by if getattr(req, 'cnx', True): The "not" diseapeared in the process. diff -r 48ba5f0c11de -r 7e8182a63559 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: