From d5ccd2e2beb3e52d1d5f576315f0042d7f75b1a2 Mon Sep 17 00:00:00 2001 From: tisto Date: Sat, 14 Jan 2012 06:57:25 +0100 Subject: [PATCH] Pep8 --- plone/app/discussion/patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/patches.py b/plone/app/discussion/patches.py index 512ce15..55088d5 100644 --- a/plone/app/discussion/patches.py +++ b/plone/app/discussion/patches.py @@ -10,7 +10,7 @@ from Products.CMFPlone.utils import safe_callable from plone.app.discussion.conversation import ANNOTATION_KEY from plone.app.discussion.interfaces import ICommentingTool -# security.declareProtected(ManageZCatalogEntries, 'clearFindAndRebuild') + def patchedClearFindAndRebuild(self): """Empties catalog, then finds all contentish objects (i.e. objects with an indexObject method), and reindexes them. @@ -34,7 +34,7 @@ def patchedClearFindAndRebuild(self): try: if ctool: ctool.indexObject(comment) - except StopIteration: # pragma: no cover + except StopIteration: # pragma: no cover pass except TypeError: