author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> |
Fri, 29 Apr 2011 19:29:22 +0200 | |
branch | oldstable |
changeset 7287 | 601ad29268ab |
parent 7286 | a0d3ea01f4bf |
child 7288 | b156200ebc9d |
child 7315 | b7a124f9aed2 |
--- a/entity.py Fri Apr 29 19:28:20 2011 +0200 +++ b/entity.py Fri Apr 29 19:29:22 2011 +0200 @@ -270,7 +270,7 @@ role = 'object' else: role = 'subject' - assert eschema.has_relation(attr, role) + assert eschema.has_relation(attr, role), '%s %s not found on %s' % (attr, role, eschema) rschema = eschema.subjrels[attr] if role == 'subject' else eschema.objrels[attr] if not rschema.final and isinstance(value, (tuple, list, set, frozenset)): if len(value) == 1: