hide the in_reply_to field inside the comment form.

svn path=/plone.app.discussion/trunk/; revision=28351
This commit is contained in:
Timo Stollenwerk 2009-08-04 15:12:15 +00:00
parent ddd8596dbd
commit c516d6ba55

View File

@ -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()