author | Sylvain Thenault <sylvain.thenault@logilab.fr> |
Fri, 19 Dec 2008 17:34:03 +0100 | |
changeset 247 | 3417739305a1 |
parent 246 | cb1f8a1d9d99 |
child 248 | ee6934a50d53 |
--- a/common/selectors.py Fri Dec 19 17:22:10 2008 +0100 +++ b/common/selectors.py Fri Dec 19 17:34:03 2008 +0100 @@ -359,8 +359,7 @@ @lltrace def has_related_entities(cls, req, rset, row=None, col=None, **kwargs): - assert row is not None - return bool(rset.get_entity(row, col).related(cls.rtype, role(cls))) + return bool(rset.get_entity(row or 0, col or 0).related(cls.rtype, role(cls))) @lltrace def one_has_relation_selector(cls, req, rset, row=None, col=None, **kwargs):