fix a name error tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 22 Apr 2009 16:54:43 +0200
branchtls-sprint
changeset 1422 51b3fd55784e
parent 1421 77ee26df178f
child 1423 39320a58faac
fix a name error
web/box.py
--- a/web/box.py	Wed Apr 22 16:54:23 2009 +0200
+++ b/web/box.py	Wed Apr 22 16:54:43 2009 +0200
@@ -215,7 +215,7 @@
             return entity.unrelated(self.rtype, self.etype, get_role(self)).entities()
         # in other cases, use vocabulary functions
         entities = []
-        for _, eid in entity.vocabulary(self.rtype, x):
+        for _, eid in entity.vocabulary(self.rtype, get_role(self)):
             if eid is not None:
                 rset = self.req.eid_rset(eid)
                 entities.append(rset.get_entity(0, 0))