web/formrenderers.py
branchtls-sprint
changeset 1291 22b4d300d18d
parent 1274 b730932a79b7
child 1292 18a86192c9c4
equal deleted inserted replaced
1290:824f695ab344 1291:22b4d300d18d
   319         
   319         
   320     def inline_entities_form(self, w, form):
   320     def inline_entities_form(self, w, form):
   321         """create a form to edit entity's inlined relations"""
   321         """create a form to edit entity's inlined relations"""
   322         entity = form.edited_entity
   322         entity = form.edited_entity
   323         __ = form.req.__
   323         __ = form.req.__
   324         for rschema, targettypes, role in form.relations_by_category('inlineview', 'add'):
   324         for rschema, targettypes, role in form.inlined_relations():
   325             # show inline forms only if there's one possible target type
   325             # show inline forms only if there's one possible target type
   326             # for rschema
   326             # for rschema
   327             if len(targettypes) != 1:
   327             if len(targettypes) != 1:
   328                 self.warning('entity related by the %s relation should have '
   328                 self.warning('entity related by the %s relation should have '
   329                              'inlined form but there is multiple target types, '
   329                              'inlined form but there is multiple target types, '