web/views/autoform.py
branchstable
changeset 4758 0efdcf0fa4c7
parent 4642 606364845c34
child 4932 dce5ebe5d598
equal deleted inserted replaced
4757:5d937aeaa6fb 4758:0efdcf0fa4c7
   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         """