From eec6bca23855355a3e113122649c11140daea484 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 16 Mar 2010 13:24:13 +0000 Subject: [PATCH] hide the email field again since this does not make sense without user email notification. svn path=/plone.app.discussion/trunk/; revision=34943 --- plone/app/discussion/browser/comments.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index d2cabb6..c16fbb4 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -75,7 +75,12 @@ class CommentForm(extensible.ExtensibleForm, form.Form): self.widgets['author_name'].mode = interfaces.HIDDEN_MODE self.widgets['author_email'].mode = interfaces.HIDDEN_MODE - # Notification enabled + # 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 + + # XXX: Author notification code #registry = queryUtility(IRegistry) #settings = registry.forInterface(IDiscussionSettings) #if not settings.user_notification_enabled: