equal
deleted
inserted
replaced
447 def build_unrelated_select_div(self, entity, rschema, role, |
447 def build_unrelated_select_div(self, entity, rschema, role, |
448 is_cell=False, hidden=True): |
448 is_cell=False, hidden=True): |
449 options = [] |
449 options = [] |
450 divid = 'div%s_%s_%s' % (rschema.type, role, entity.eid) |
450 divid = 'div%s_%s_%s' % (rschema.type, role, entity.eid) |
451 selectid = 'select%s_%s_%s' % (rschema.type, role, entity.eid) |
451 selectid = 'select%s_%s_%s' % (rschema.type, role, entity.eid) |
452 if rschema.symetric or role == 'subject': |
452 if rschema.symmetric or role == 'subject': |
453 targettypes = rschema.objects(entity.e_schema) |
453 targettypes = rschema.objects(entity.e_schema) |
454 etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes)) |
454 etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes)) |
455 else: |
455 else: |
456 targettypes = rschema.subjects(entity.e_schema) |
456 targettypes = rschema.subjects(entity.e_schema) |
457 etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes)) |
457 etypes = '/'.join(sorted(etype.display_name(self._cw) for etype in targettypes)) |