# HG changeset patch # User Sylvain Thénault # Date 1476262758 -7200 # Node ID 6563113b9cafded981cf4ce5a563ab267b9d8c82 # Parent 6f303125bfc85ffac6de0bfb41fc5327fce46e28 [autoform] Ease overriding of inlined form renderer. Closes #15755515 diff -r 6f303125bfc8 -r 6563113b9caf cubicweb/web/views/autoform.py --- a/cubicweb/web/views/autoform.py Wed Oct 19 15:58:30 2016 +0200 +++ b/cubicweb/web/views/autoform.py Wed Oct 12 10:59:18 2016 +0200 @@ -200,6 +200,7 @@ _select_attrs = ('peid', 'rtype', 'role', 'pform', 'etype') removejs = "removeInlinedEntity('%s', '%s', '%s')" + form_renderer_id = 'inline' # make pylint happy peid = rtype = role = pform = etype = None @@ -229,7 +230,7 @@ form = self._cw.vreg['forms'].select('edition', self._cw, entity=entity, formtype='inlined', - form_renderer_id='inline', + form_renderer_id=self.form_renderer_id, copy_nav_params=False, mainform=False, parent_form=self.pform,