replace CommentFactory() with createObject().
svn path=/plone.app.discussion/trunk/; revision=28355
This commit is contained in:
parent
a63f518bcb
commit
6014a65daa
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user