[Zope-CMF] Re: Abusing GenericSetup during traditional installs
Stefan H. Holek
stefan at epy.co.at
Mon Aug 21 03:34:34 EDT 2006
On 17. Aug 2006, at 15:50, yuppie wrote:
> My approach would be to improve the catalog adapters. Even if you
> stick to the behavior implemented in setuphandlers.py it would have
> been easier and more straight forward to implement it in a subclass
> of ZCatalogXMLAdapter, overriding the default adapter.
>
I have tried this initially but found it impossible to "override" the
existing adapter for IZCatalog. I always got complaints from the
adapter machinery about duplicate registrations. I may be missing
something here...
> But fixing some general catalog adapter issues will make your
> special behavior obsolete:
>
> - The adapters should compare the new settings with the existing
> ones and make sure indexes are only updated if they are actually
> changed. This is not implemented so far.
>
> - The adapters should modify existing indexes if the profile
> contains new settings. This is not implemented for the 'extra'
> elements.
>
> - Reindexing might be very expensive. That's the reason why
> GenericSetup does no reindexing, you have to do it manually. We
> need a better solution for that, maybe some bookkeeping which
> indexes need to be reindexed and a button in the setup tool that
> triggers reindexing.
+1 on all accounts
Stefan
--
Anything that happens, happens. --Douglas Adams
More information about the Zope-CMF
mailing list