replace CommentFactory() with createObject().

svn path=/plone.app.discussion/trunk/; revision=28355
This commit is contained in:
Timo Stollenwerk 2009-08-04 18:42:17 +00:00
parent a63f518bcb
commit 6014a65daa
1 changed files with 2 additions and 2 deletions

View File

@ -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