oops tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 09 Apr 2009 14:31:48 +0200
branchtls-sprint
changeset 1319 2fe3df4e1e60
parent 1318 50e1a778c5ee
child 1320 c85f4d8eff8b
oops
web/formrenderers.py
--- a/web/formrenderers.py	Thu Apr 09 14:31:32 2009 +0200
+++ b/web/formrenderers.py	Thu Apr 09 14:31:48 2009 +0200
@@ -16,6 +16,7 @@
 from cubicweb.web import formwidgets as fwdgs
 from cubicweb.web.widgets import checkbox
 
+
 class FormRenderer(object):
     """basic renderer displaying fields in a two columns table label | value
     """
@@ -344,9 +345,9 @@
                 # there is no related entity and we need at least one: we need to
                 # display one explicit inline-creation view
                 if form.should_display_inline_creation_form(rschema, existant, card):
-                    w(self.view('inline-creation', None, etype=targettype,
+                    w(form.view('inline-creation', None, etype=targettype,
                                 peid=entity.eid, ptype=entity.e_schema,
-                                rtype=rschema, role=role, **kwargs))
+                                rtype=rschema, role=role))
                 # we can create more than one related entity, we thus display a link
                 # to add new related entities
                 if form.should_display_add_new_relation_link(rschema, existant, card):