# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239189376 -7200 # Node ID 18a86192c9c471ffff953c935430eca8f0189767 # Parent 22b4d300d18d22116846c40c7500df555b41f716 inline_creation_form doesn't take ptype argument anymore diff -r 22b4d300d18d -r 18a86192c9c4 web/data/cubicweb.edition.js --- a/web/data/cubicweb.edition.js Wed Apr 08 13:15:21 2009 +0200 +++ b/web/data/cubicweb.edition.js Wed Apr 08 13:16:16 2009 +0200 @@ -256,12 +256,11 @@ /* * makes an AJAX request to get an inline-creation view's content * @param peid : the parent entity eid - * @param ptype : the parent entity type * @param ttype : the target (inlined) entity type * @param rtype : the relation type between both entities */ -function addInlineCreationForm(peid, ptype, ttype, rtype, role) { - var d = async_rawremote_exec('inline_creation_form', peid, ptype, ttype, rtype, role); +function addInlineCreationForm(peid, ttype, rtype, role) { + var d = async_rawremote_exec('inline_creation_form', peid, ttype, rtype, role); d.addCallback(function (response) { var linknode = getNode('add' + rtype + ':' + peid + 'link'); var dom = getDomFromResponse(response); diff -r 22b4d300d18d -r 18a86192c9c4 web/formrenderers.py --- a/web/formrenderers.py Wed Apr 08 13:15:21 2009 +0200 +++ b/web/formrenderers.py Wed Apr 08 13:16:16 2009 +0200 @@ -335,9 +335,8 @@ existant = entity.has_eid() and entity.related(rschema) if existant: # display inline-edition view for all existing related entities - w(self.view('inline-edition', existant, rtype=rschema, role=role, - ptype=entity.e_schema, peid=entity.eid, - **kwargs)) + w(form.view('inline-edition', existant, rtype=rschema, role=role, + ptype=entity.e_schema, peid=entity.eid)) if role == 'subject': card = rschema.rproperty(entity.e_schema, targettype, 'cardinality')[0] else: @@ -354,8 +353,8 @@ divid = "addNew%s%s%s:%s" % (targettype, rschema, role, entity.eid) w(u'