entity.py
branchstable
changeset 6807 7330d1fa02dd
parent 6792 8834d9d91b66
child 6812 a637f961665d
equal deleted inserted replaced
6806:8291f5e0c9f6 6807:7330d1fa02dd
   695         except KeyError:
   695         except KeyError:
   696             pass
   696             pass
   697         if not self.has_eid():
   697         if not self.has_eid():
   698             if entities:
   698             if entities:
   699                 return []
   699                 return []
   700             return self.empty_rset()
   700             return self._cw.empty_rset()
   701         rql = self.cw_related_rql(rtype, role)
   701         rql = self.cw_related_rql(rtype, role)
   702         rset = self._cw.execute(rql, {'x': self.eid})
   702         rset = self._cw.execute(rql, {'x': self.eid})
   703         self.cw_set_relation_cache(rtype, role, rset)
   703         self.cw_set_relation_cache(rtype, role, rset)
   704         return self.related(rtype, role, limit, entities)
   704         return self.related(rtype, role, limit, entities)
   705 
   705