fix w/ rset with more than one column tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 04 Mar 2009 18:50:13 +0100
branchtls-sprint
changeset 1011 22812cfe36b4
parent 1010 73591b2ffeb4
child 1012 0de202b907d6
fix w/ rset with more than one column
selectors.py
--- a/selectors.py	Wed Mar 04 18:49:58 2009 +0100
+++ b/selectors.py	Wed Mar 04 18:50:13 2009 +0100
@@ -745,7 +745,7 @@
             return 0
         rset = entity.related(self.rtype, self.role)
         if self.target_etype:
-            return any(x for x, in rset.description if x == self.target_etype)
+            return any(r for r in rset.description if r[0] == self.target_etype)
         return rset and 1 or 0