Comment out author_notification because we don't use it right now.

svn path=/plone.app.discussion/trunk/; revision=39324
This commit is contained in:
Timo Stollenwerk 2010-08-28 19:51:53 +00:00
parent 946ff36190
commit 87b2c5dd02

View File

@ -58,7 +58,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
def updateFields(self): def updateFields(self):
super(CommentForm, self).updateFields() super(CommentForm, self).updateFields()
#self.fields['author_notification'].widgetFactory = SingleCheckBoxFieldWidget #self.fields['author_notification'].widgetFactory =
# SingleCheckBoxFieldWidget
def updateWidgets(self): def updateWidgets(self):
super(CommentForm, self).updateWidgets() super(CommentForm, self).updateWidgets()
@ -91,7 +92,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
self.actions['cancel'].addClass("hide") self.actions['cancel'].addClass("hide")
self.actions['comment'].addClass("context") 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): def handleComment(self, action):
context = aq_inner(self.context) context = aq_inner(self.context)
wf = getToolByName(context, 'portal_workflow') wf = getToolByName(context, 'portal_workflow')
@ -105,7 +107,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
author_name = u"" author_name = u""
author_username = u"" author_username = u""
author_email = u"" author_email = u""
author_notification = None #author_notification = None
# Captcha check for anonymous users (if Captcha is enabled) # Captcha check for anonymous users (if Captcha is enabled)
registry = queryUtility(IRegistry) registry = queryUtility(IRegistry)
@ -131,8 +133,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
author_username = data['author_username'] author_username = data['author_username']
if 'author_email' in data: if 'author_email' in data:
author_email = data['author_email'] author_email = data['author_email']
if 'author_notification' in data: #if 'author_notification' in data:
author_notification = data['author_notification'] # author_notification = data['author_notification']
# The add-comment view is called on the conversation object # The add-comment view is called on the conversation object
conversation = IConversation(self.__parent__) conversation = IConversation(self.__parent__)