From 6014a65daa3cbf8b09c4bb00526db2b3dd211e64 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 4 Aug 2009 18:42:17 +0000 Subject: [PATCH] replace CommentFactory() with createObject(). svn path=/plone.app.discussion/trunk/; revision=28355 --- plone/app/discussion/browser/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 66d5e8c..f46035c 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -102,7 +102,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): conversation = IConversation(self.__parent__) # Create the comment - comment = CommentFactory() + comment = createObject('plone.Comment') comment.title = title comment.text = text @@ -156,7 +156,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): replies = IReplies(comment_to_reply_to) # Create the comment - comment = CommentFactory() + comment = createObject('plone.Comment') comment.title = title comment.text = text