From 27d8ced62d269cbdb69896ffe4607bbdf1581275 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Mon, 12 Jul 2010 13:49:57 +0000 Subject: [PATCH] revert r37751. svn path=/plone.app.discussion/trunk/; revision=37753 --- plone/app/discussion/tests/test_tool.py | 4 ++-- plone/app/discussion/tool.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/tests/test_tool.py b/plone/app/discussion/tests/test_tool.py index c95ba8e..3cfc968 100644 --- a/plone/app/discussion/tests/test_tool.py +++ b/plone/app/discussion/tests/test_tool.py @@ -1,6 +1,6 @@ import unittest -from zope.component import getUtility, createObject +from zope.component import queryUtility, createObject from Products.PloneTestCase.ptc import PloneTestCase from plone.app.discussion.tests.layer import DiscussionLayer @@ -31,7 +31,7 @@ class ToolTest(PloneTestCase): conversation.addComment(comment) # Check that the comment got indexed in the tool: - tool = getUtility(ICommentingTool) + tool = queryUtility(ICommentingTool) comment = list(tool.searchResults()) self.assert_(len(comment) == 1, "There is only one comment, but we got" " %s results in the search" % len(comment)) diff --git a/plone/app/discussion/tool.py b/plone/app/discussion/tool.py index b4d2478..c12a8e9 100644 --- a/plone/app/discussion/tool.py +++ b/plone/app/discussion/tool.py @@ -1,5 +1,5 @@ """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. BBB support for the old portal_discussion is provided in the bbb package.