[Zope-CMF] Why does GenericSetup remove indexes before adding them again?

Wichert Akkerman wichert at wiggy.net
Thu Dec 13 17:04:49 EST 2007


Previously Damien Baty (ML) wrote:
> 	Hello,
> 
>   If I define a catalog index with GenericSetup, GS kindly removes the 
> index of the same name if it exists, and then add it again. This is 
> probably a good intention. However, when I reinstall a product (in this 
> case, a Plone product), removing and adding back the index causes the 
> indexed values to be lost. If the index definition has not changed, 
> there is no real need to remove it and add it back.
> 
>   I wonder what is the reason why GS remove all indexes, instead of 
> comparing existing indexes with the ones listed in the import step, and 
> adding new ones and removing and adding back only those that have changed.

See https://bugs.launchpad.net/zope-cmf/+bug/161682

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Zope-CMF mailing list