[Zope-CMF] Re: What is the status of GS wiping catalog indexes on catalog.xml import?

yuppie y.2008 at wcm-solutions.de
Fri Feb 29 10:45:19 EST 2008


Andreas Jung wrote:
> --On 28. Februar 2008 09:38:31 +0100 yuppie 
> <y.2008-E2EsyBC0hj3+aS/vkh9bjw at public.gmane.org> wrote:
>> I'd prefer a IConfigurableIndex interface that also has a set method.
> 
> I added the IIndexConfiguration to the Zope trunk. I don't think that a 
> set method is a good idea. Removing and re-adding is possibly the 
> cleanest solution. Some indexes might perform some configurations within 
> their constructor. Calling clear() would not be enough for getting their 
> configuration right.

All the export/import adapters shipped with GenericSetup and the adapter 
shipped with TextIndexNG3 *modify* the indexes and call clear(). AFAICT 
this works fine. And with an official set method it would no longer be a 
hack.

Switching to the remove-and-re-add pattern would not be easy.


Cheers, Yuppie



More information about the Zope-CMF mailing list