# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1279048441 -7200 # Tue Jul 13 21:14:01 2010 +0200 # Node ID 11a1bfa10644f5d10a7be8cae1eb7c7e130247e2 # Parent 0be5e144a8b90177931a6f3a19f1c88653838083 use formtype=inlined so we don't get the relation edition section diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1,11 +1,8 @@ #!/usr/bin/env python # pylint: disable-msg=W0404,W0622,W0704,W0613,W0152 -"""Generic Setup script, takes package info from __pkginfo__.py file. +# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr -:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. -:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr -:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses -""" __docformat__ = "restructuredtext en" import os diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -243,9 +243,10 @@ mainform=False) form.add_subform(cform) else: + # use formtype=inlined to avoid viewing the relation edition section form = fvreg.select('edition', self._cw, entity=newcomment, domid='commentForm%s' % commented.eid, - form_buttons=buttons) + form_buttons=buttons, formtype='inlined') cform = form self.w(u'<div id="comment%sSlot">%s</div>' % ( commented.eid, form.render(formvalues={'comments': commented.eid},