web/views/autoform.py
branchstable
changeset 3595 b61f1c5e6c55
parent 3594 c5b40ab4ea43
child 3629 559cad62c786
child 3689 deb13e88e037
equal deleted inserted replaced
3594:c5b40ab4ea43 3595:b61f1c5e6c55
   376 
   376 
   377     def should_inline_relation_form(self, rschema, targettype, role):
   377     def should_inline_relation_form(self, rschema, targettype, role):
   378         """return true if the given relation with entity has role and a
   378         """return true if the given relation with entity has role and a
   379         targettype target should be inlined
   379         targettype target should be inlined
   380         """
   380         """
   381         return self.rinlined.etype_get(self.edited_entity.id, rschema, role,
   381         return True
   382                                        targettype)
       
   383 
   382 
   384     def should_display_inline_creation_form(self, rschema, existant, card):
   383     def should_display_inline_creation_form(self, rschema, existant, card):
   385         """return true if a creation form should be inlined
   384         """return true if a creation form should be inlined
   386 
   385 
   387         by default true if there is no related entity and we need at least one
   386         by default true if there is no related entity and we need at least one