hide the email field again since this does not make sense without user email notification.

svn path=/plone.app.discussion/trunk/; revision=34943
This commit is contained in:
Timo Stollenwerk 2010-03-16 13:24:13 +00:00
parent 819b66e149
commit eec6bca238
1 changed files with 6 additions and 1 deletions

View File

@ -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: