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

View File

@ -102,7 +102,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
conversation = IConversation(self.__parent__) conversation = IConversation(self.__parent__)
# Create the comment # Create the comment
comment = CommentFactory() comment = createObject('plone.Comment')
comment.title = title comment.title = title
comment.text = text comment.text = text
@ -156,7 +156,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
replies = IReplies(comment_to_reply_to) replies = IReplies(comment_to_reply_to)
# Create the comment # Create the comment
comment = CommentFactory() comment = createObject('plone.Comment')
comment.title = title comment.title = title
comment.text = text comment.text = text