From 5e81422cd18b24ef41ea92922420a5940e48d0b8 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 21 Dec 2011 19:17:58 +0100 Subject: [PATCH] Rename discussion var to ctool which is more appropriate. --- plone/app/discussion/patches.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/patches.py b/plone/app/discussion/patches.py index 507e416..512ce15 100644 --- a/plone/app/discussion/patches.py +++ b/plone/app/discussion/patches.py @@ -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