Rename discussion var to ctool which is more appropriate.

This commit is contained in:
Timo Stollenwerk 2011-12-21 19:17:58 +01:00
parent 7dc3e0c6f9
commit 5e81422cd1

View File

@ -26,14 +26,14 @@ def patchedClearFindAndRebuild(self):
obj.indexObject()
annotions = IAnnotations(obj)
discussion = queryUtility(ICommentingTool)
ctool = queryUtility(ICommentingTool)
if ANNOTATION_KEY in annotions:
conversation = annotions[ANNOTATION_KEY]
conversation = conversation.__of__(obj)
for comment in conversation.getComments():
try:
if discussion:
discussion.indexObject(comment)
if ctool:
ctool.indexObject(comment)
except StopIteration: # pragma: no cover
pass