author | sylvain.thenault@logilab.fr |
Wed, 04 Mar 2009 18:50:13 +0100 | |
branch | tls-sprint |
changeset 1011 | 22812cfe36b4 |
parent 1010 | 73591b2ffeb4 |
child 1012 | 0de202b907d6 |
selectors.py | file | annotate | diff | comparison | revisions |
--- 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