[Zope-CMF] Re: Problem with Registering Local Utilities on reinstall of product

Wichert Akkerman wichert at wiggy.net
Tue Jun 17 04:40:35 EDT 2008


Previously Hanno Schlichting wrote:
> The code here does seem indeed to be wrong. There's two modes for GS 
> import handlers, one being with purge and one without. The code in 
> question does not support that correctly. It does work in some cases, as 
> the underlying registerUtility function first checks if the component 
> was already registered. It does so effectively by checking the newly 
> registered object and the one that is already registered for equality. 
> This check obviously fails in case of creating a new utility via a factory.

This is due to an underlying problem in the ZCA that hurts GenericSetup
in several places: it is impossible to determine if a factory or an object
was registered. Without knowing that information it is also impossible
to reliably do an export. Once that has been corrected in zope.component
GenericSetup can be adjusted.

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