revert r37751.
svn path=/plone.app.discussion/trunk/; revision=37753
This commit is contained in:
parent
cac0bae7a5
commit
27d8ced62d
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from zope.component import getUtility, createObject
|
from zope.component import queryUtility, createObject
|
||||||
|
|
||||||
from Products.PloneTestCase.ptc import PloneTestCase
|
from Products.PloneTestCase.ptc import PloneTestCase
|
||||||
from plone.app.discussion.tests.layer import DiscussionLayer
|
from plone.app.discussion.tests.layer import DiscussionLayer
|
||||||
@ -31,7 +31,7 @@ class ToolTest(PloneTestCase):
|
|||||||
conversation.addComment(comment)
|
conversation.addComment(comment)
|
||||||
|
|
||||||
# Check that the comment got indexed in the tool:
|
# Check that the comment got indexed in the tool:
|
||||||
tool = getUtility(ICommentingTool)
|
tool = queryUtility(ICommentingTool)
|
||||||
comment = list(tool.searchResults())
|
comment = list(tool.searchResults())
|
||||||
self.assert_(len(comment) == 1, "There is only one comment, but we got"
|
self.assert_(len(comment) == 1, "There is only one comment, but we got"
|
||||||
" %s results in the search" % len(comment))
|
" %s results in the search" % len(comment))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
"""The portal_discussion tool, usually accessed via
|
"""The portal_discussion tool, usually accessed via
|
||||||
getUtility(ICommentingTool). The default implementation delegates to the
|
queryUtility(ICommentingTool). The default implementation delegates to the
|
||||||
standard portal_catalog for indexing comments.
|
standard portal_catalog for indexing comments.
|
||||||
|
|
||||||
BBB support for the old portal_discussion is provided in the bbb package.
|
BBB support for the old portal_discussion is provided in the bbb package.
|
||||||
|
Loading…
Reference in New Issue
Block a user