From 497c2a075ecec8bc1e141eda63058d231eb207af Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 3 Oct 2010 07:29:44 +0000 Subject: [PATCH] There is no need to set the title in the handleComment method anymore. svn path=/plone.app.discussion/trunk/; revision=40492 --- plone/app/discussion/browser/comments.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 2df2b66..b32a7c6 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -105,7 +105,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form): if errors: return - title = u"" text = u"" author_name = u"" author_email = u"" @@ -129,8 +128,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form): captcha.validate(data['captcha']) # Fetch data from request - if 'title' in data: - title = data['title'] if 'text' in data: text = data['text'] if 'author_name' in data: @@ -155,7 +152,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form): # Create the comment comment = createObject('plone.Comment') - comment.title = title comment.text = text portal_membership = getToolByName(self.context, 'portal_membership')