equal
deleted
inserted
replaced
248 # inlined forms support #################################################### |
248 # inlined forms support #################################################### |
249 |
249 |
250 def should_inline_relation_form(self, rschema, targettype, role): |
250 def should_inline_relation_form(self, rschema, targettype, role): |
251 """return true if the given relation with entity has role and a |
251 """return true if the given relation with entity has role and a |
252 targettype target should be inlined |
252 targettype target should be inlined |
253 """ |
253 |
254 return self.rinlined.etype_get(self.edited_entity.__regid__, rschema, role, |
254 At this point we now relation has inlined_attributes tag (eg is returned |
255 targettype) |
255 by `inlined_relations()`. Overrides this for more finer control. |
|
256 """ |
|
257 return True |
256 |
258 |
257 def display_inline_edition_form(self, w, rschema, targettype, role, |
259 def display_inline_edition_form(self, w, rschema, targettype, role, |
258 i18nctx): |
260 i18nctx): |
259 """display inline forms for already related entities. |
261 """display inline forms for already related entities. |
260 |
262 |