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

Andreas Jung lists at zopyx.com
Fri Feb 29 10:52:02 EST 2008



--On 29. Februar 2008 16:45:19 +0100 yuppie <y.2008 at wcm-solutions.de> wrote:

> 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.
>
>

So just go ahead and define the interface as you need it :-)

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20080229/a1b074cf/attachment.bin


More information about the Zope-CMF mailing list