From 87b2c5dd023f7afb23a435fb0446a2c093a201b0 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 28 Aug 2010 19:51:53 +0000 Subject: [PATCH] Comment out author_notification because we don't use it right now. svn path=/plone.app.discussion/trunk/; revision=39324 --- plone/app/discussion/browser/comments.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index d643378..886294a 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -58,7 +58,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form): def updateFields(self): super(CommentForm, self).updateFields() - #self.fields['author_notification'].widgetFactory = SingleCheckBoxFieldWidget + #self.fields['author_notification'].widgetFactory = + # SingleCheckBoxFieldWidget def updateWidgets(self): super(CommentForm, self).updateWidgets() @@ -91,7 +92,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form): self.actions['cancel'].addClass("hide") self.actions['comment'].addClass("context") - @button.buttonAndHandler(_(u"add_comment_button",default=u"Comment"), name='comment') + @button.buttonAndHandler(_(u"add_comment_button",default=u"Comment"), + name='comment') def handleComment(self, action): context = aq_inner(self.context) wf = getToolByName(context, 'portal_workflow') @@ -105,7 +107,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): author_name = u"" author_username = u"" author_email = u"" - author_notification = None + #author_notification = None # Captcha check for anonymous users (if Captcha is enabled) registry = queryUtility(IRegistry) @@ -131,8 +133,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form): author_username = data['author_username'] if 'author_email' in data: author_email = data['author_email'] - if 'author_notification' in data: - author_notification = data['author_notification'] + #if 'author_notification' in data: + # author_notification = data['author_notification'] # The add-comment view is called on the conversation object conversation = IConversation(self.__parent__)