protect against None rset tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 15:02:10 +0100
branchtls-sprint
changeset 788 d62fb3e9797d
parent 787 b9eb2475b446
child 789 9efbb54f9cac
child 790 f476dad65ab2
protect against None rset
selectors.py
--- a/selectors.py	Wed Feb 18 15:01:58 2009 +0100
+++ b/selectors.py	Wed Feb 18 15:02:10 2009 +0100
@@ -741,6 +741,8 @@
         
     @lltrace
     def __call__(self, cls, req, rset, row=None, col=0, **kwargs):
+        if rset is None:
+            return 0
         user = req.user
         action = self.action
         if row is None: