equal
deleted
inserted
replaced
222 |
222 |
223 def unrelated_entities(self, entity): |
223 def unrelated_entities(self, entity): |
224 """returns the list of unrelated entities, using the entity's |
224 """returns the list of unrelated entities, using the entity's |
225 appropriate vocabulary function |
225 appropriate vocabulary function |
226 """ |
226 """ |
227 skip = set(e.eid for e in entity.related(self.rtype, get_role(self), |
227 skip = set(unicode(e.eid) for e in entity.related(self.rtype, get_role(self), |
228 entities=True)) |
228 entities=True)) |
229 skip.add(None) |
229 skip.add(None) |
230 skip.add(INTERNAL_FIELD_VALUE) |
230 skip.add(INTERNAL_FIELD_VALUE) |
231 filteretype = getattr(self, 'etype', None) |
231 filteretype = getattr(self, 'etype', None) |
232 entities = [] |
232 entities = [] |
233 form = self._cw.vreg['forms'].select('edition', self._cw, |
233 form = self._cw.vreg['forms'].select('edition', self._cw, |