From c516d6ba55522087460db5006945f6d3496c0402 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 4 Aug 2009 15:12:15 +0000 Subject: [PATCH] hide the in_reply_to field inside the comment form. svn path=/plone.app.discussion/trunk/; revision=28351 --- plone/app/discussion/browser/comments.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 42aa162..66d5e8c 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -85,6 +85,10 @@ class CommentForm(extensible.ExtensibleForm, form.Form): 'author_name', 'author_email',) + def updateWidgets(self): + super(CommentForm, self).updateWidgets() + self.widgets['in_reply_to'].mode = interfaces.HIDDEN_MODE + @button.buttonAndHandler(u'Comment') def handleApply(self, action): data, errors = self.extractData()