Products.ZSQLCatalog.SQLCatalog: Make SQLCatalog not rely on isIndexable from ERP5Site
Earlier, In ERP5Site, we use property 'isIndexable' to have control over indexing and unindexing. This was usefull specially in case of bootstrap. To have this control, we had a function `isIndexable` in SQLCatalog which we used to switch for enabling-disabling indexation. (769f9fb2) This is a preparative commit for case where: Now, as we move to ERP5 based Catalog, which itself is an ERP5 Object, hence it has an accessor `isIndexable` of itself which we plan to disable for now(as we don't want circular dependency while indexing catalog in itself). But as we did have a function `isIndexable` in SQLCatalog which had control over the indexing, we needed to rename this property for ERP5Site. Hence, now we use property 'isIndexingRequired' for ERP5Site and use to have overall control over indexing process. Please note, we do not intend to change the same property name for any other object. Its just for ERP5Site.
Showing
-
If I understand correctly, the problem is that SQLCatalog accesses
isIndexable
onself
, hence relying on implicit acquisition to reach the one fromERP5Site
.If so, and if we really always want the one from
ERP5Site
(I believe we do), then what about just doing.getPortalObject().isIndexable
instead of.isIndexable
? I think the change would be smaller and more local.
Please register or sign in to comment