diff --git a/setup.py b/setup.py index 0be5e144a8b90177931a6f3a19f1c88653838083_c2V0dXAucHk=..11a1bfa10644f5d10a7be8cae1eb7c7e130247e2_c2V0dXAucHk= 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/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 @@ -4,8 +5,4 @@ -: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 index 0be5e144a8b90177931a6f3a19f1c88653838083_dmlld3MucHk=..11a1bfa10644f5d10a7be8cae1eb7c7e130247e2_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -243,5 +243,6 @@ 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, @@ -246,6 +247,6 @@ 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},