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:
parent
819b66e149
commit
eec6bca238
@ -75,7 +75,12 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
self.widgets['author_name'].mode = interfaces.HIDDEN_MODE
|
self.widgets['author_name'].mode = interfaces.HIDDEN_MODE
|
||||||
self.widgets['author_email'].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)
|
#registry = queryUtility(IRegistry)
|
||||||
#settings = registry.forInterface(IDiscussionSettings)
|
#settings = registry.forInterface(IDiscussionSettings)
|
||||||
#if not settings.user_notification_enabled:
|
#if not settings.user_notification_enabled:
|
||||||
|
Loading…
Reference in New Issue
Block a user