equal
deleted
inserted
replaced
300 |
300 |
301 by default true if there is no related entity and we need at least one |
301 by default true if there is no related entity and we need at least one |
302 """ |
302 """ |
303 return not existant and card in '1+' or self.req.form.has_key('force_%s_display' % rschema) |
303 return not existant and card in '1+' or self.req.form.has_key('force_%s_display' % rschema) |
304 |
304 |
|
305 def display_inline_creation_form(self, w, rschema, targettype, role, |
|
306 i18nctx): |
|
307 entity = self.edited_entity |
|
308 w(self.view('inline-creation', None, etype=targettype, |
|
309 peid=entity.eid, ptype=entity.e_schema, |
|
310 rtype=rschema, role=role, i18nctx=i18nctx)) |
|
311 |
305 def should_display_add_new_relation_link(self, rschema, existant, card): |
312 def should_display_add_new_relation_link(self, rschema, existant, card): |
306 """return true if we should add a link to add a new creation form |
313 """return true if we should add a link to add a new creation form |
307 (through ajax call) |
314 (through ajax call) |
308 |
315 |
309 by default true if there is no related entity or if the relation has |
316 by default true if there is no related entity or if the relation has |