From 96e2899955f95b164d7587ee819769c14f6e7e17 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 28 Aug 2009 13:12:14 +0000 Subject: [PATCH] hide the email field for now. we keep the field for integrators or later use. svn path=/plone.app.discussion/trunk/; revision=29435 --- plone/app/discussion/browser/comments.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 247822a..2e95f56 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -115,9 +115,15 @@ class CommentForm(extensible.ExtensibleForm, form.Form): self.buttons['comment'].actionFactory = commentButtonActionFactory self.buttons['cancel'].actionFactory = cancelButtonActionFactory + # XXX: Since we are not using the author_email field in the + # current state, we hide it by default. But we keep the field for + # integrators or later use. + self.widgets['author_email'].mode = interfaces.HIDDEN_MODE + @button.buttonAndHandler(_(u"Comment")) def handleComment(self, action): data, errors = self.extractData() + title = u"" text = u"" author_name = u""