Commit 81b2a1de by Julien Muchembled

Publish Folder.recursiveReindexObject

With the removal of Folder_reindexAll, it has become laborious to reindex
a whole module, and it was often done in an unsafe way (create a dummy wrapper
script in custom skin folder, without thinking about security).
1 parent bf9df74f
......@@ -1303,8 +1303,11 @@ class Folder(OFSFolder2, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn):
'recursiveReindexObject',
)(*args, **kw)
security.declarePublic('recursiveReindexObject')
security.declareProtected(Permissions.ModifyPortalContent,
'recursiveReindexObject')
def recursiveReindexObject(self, activate_kw=None, **kw):
"""Recursively indexes the content of self.
"""
if self.isAncestryIndexable():
kw, activate_kw = self._getReindexAndActivateParameterDict(
kw,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!