equal
deleted
inserted
replaced
256 add_etype = self._compute_ttypes(rschema, role)[0] |
256 add_etype = self._compute_ttypes(rschema, role)[0] |
257 _new_entity = self._cw.vreg['etypes'].etype_class(add_etype)(self._cw) |
257 _new_entity = self._cw.vreg['etypes'].etype_class(add_etype)(self._cw) |
258 _new_entity.eid = self._cw.varmaker.next() |
258 _new_entity.eid = self._cw.varmaker.next() |
259 edit_entity = _new_entity |
259 edit_entity = _new_entity |
260 # XXX see forms.py ~ 276 and entities.linked_to method |
260 # XXX see forms.py ~ 276 and entities.linked_to method |
261 # is there another way ? |
261 # is there another way? |
262 self._cw.form['__linkto'] = '%s:%s:%s' % (rschema, entity.eid, neg_role(role)) |
262 self._cw.form['__linkto'] = '%s:%s:%s' % (rschema, entity.eid, neg_role(role)) |
263 assert edit_entity |
263 assert edit_entity |
264 return label, edit_entity |
264 return label, edit_entity |
265 |
265 |
266 def _build_renderer(self, related_entity, display_label): |
266 def _build_renderer(self, related_entity, display_label): |