web/views/basecontrollers.py
changeset 3524 a3431f4e2f40
parent 3460 e4843535db25
parent 3518 11ce4682187d
child 3589 a5432f99f2d9
--- a/web/views/basecontrollers.py	Mon Sep 28 16:39:10 2009 +0200
+++ b/web/views/basecontrollers.py	Tue Sep 29 15:58:44 2009 +0200
@@ -354,7 +354,7 @@
         entity.eid = varname
         entity['pkey'] = propkey
         form = self._cw.vreg['forms'].select('edition', self._cw, entity=entity)
-        form.form_build_context()
+        form.build_context()
         vfield = form.field_by_name('value')
         renderer = FormRenderer(self._cw)
         return vfield.render(form, renderer, tabindex=tabindex) \
@@ -381,8 +381,7 @@
         view = self._cw.vreg['views'].select('inline-creation', self._cw,
                                          etype=ttype, peid=peid, rtype=rtype,
                                          role=role)
-        return self._call_view(view, etype=ttype, peid=peid,
-                               rtype=rtype, role=role, i18nctx=i18nctx)
+        return self._call_view(view, i18nctx=i18nctx)
 
     @jsonize
     def js_validate_form(self, action, names, values):