equal
deleted
inserted
replaced
659 return self.display_fields |
659 return self.display_fields |
660 if self.edited_entity.has_eid() and not self.edited_entity.has_perm('update'): |
660 if self.edited_entity.has_eid() and not self.edited_entity.has_perm('update'): |
661 return [] |
661 return [] |
662 # XXX we should simply put eid in the generated section, no? |
662 # XXX we should simply put eid in the generated section, no? |
663 return [(rtype, role) for rtype, _, role in self._relations_by_section( |
663 return [(rtype, role) for rtype, _, role in self._relations_by_section( |
664 'attributes', 'update', strict) if rtype != 'eid'] |
664 'attributes', 'update', strict)] |
665 |
665 |
666 def editable_relations(self): |
666 def editable_relations(self): |
667 """return a sorted list of (relation's label, relation'schema, role) for |
667 """return a sorted list of (relation's label, relation'schema, role) for |
668 relations in the 'relations' section |
668 relations in the 'relations' section |
669 """ |
669 """ |