Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.19 KB

README.rst

File metadata and controls

29 lines (19 loc) · 1.19 KB
https://api.travis-ci.org/netsight/experimental.localrolesindex.png https://coveralls.io/repos/netsight/experimental.localrolesindex/badge.png

experimental.localrolesindex

This package provides a specialised index for ZCatalog which reduces the number of objects that need to be examined in order to maintain local roles and user information.

When indexing an portal content, if the portal content implements the interface:

experimental.localrolesindex.interfaces.IDecendantLocalRolesAware

then indexing of descendant nodes will occur.

The tentative idea is to replace the existing KeywordIndex with the LocalRolesIndex defined herewith for 'allowedRolesAndUsers', and then to to change:

Products.CMFCore.CMFCatalogAware.CatalogAware.reindexObjectSecurity

such that instead of re-indexing object security for each descendant via a catalog query, it should instead call reindexObject once on the portal object and allow the experimental LocalRolesIndex to determine which children need to be re-indexed.