equal
deleted
inserted
replaced
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, ' |