Pep8
This commit is contained in:
parent
cce409a729
commit
d5ccd2e2be
@ -10,7 +10,7 @@ from Products.CMFPlone.utils import safe_callable
|
|||||||
from plone.app.discussion.conversation import ANNOTATION_KEY
|
from plone.app.discussion.conversation import ANNOTATION_KEY
|
||||||
from plone.app.discussion.interfaces import ICommentingTool
|
from plone.app.discussion.interfaces import ICommentingTool
|
||||||
|
|
||||||
# security.declareProtected(ManageZCatalogEntries, 'clearFindAndRebuild')
|
|
||||||
def patchedClearFindAndRebuild(self):
|
def patchedClearFindAndRebuild(self):
|
||||||
"""Empties catalog, then finds all contentish objects (i.e. objects
|
"""Empties catalog, then finds all contentish objects (i.e. objects
|
||||||
with an indexObject method), and reindexes them.
|
with an indexObject method), and reindexes them.
|
||||||
@ -34,7 +34,7 @@ def patchedClearFindAndRebuild(self):
|
|||||||
try:
|
try:
|
||||||
if ctool:
|
if ctool:
|
||||||
ctool.indexObject(comment)
|
ctool.indexObject(comment)
|
||||||
except StopIteration: # pragma: no cover
|
except StopIteration: # pragma: no cover
|
||||||
pass
|
pass
|
||||||
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user