[Zope-CMF] GenericSetup global registries

Wichert Akkerman wichert at wiggy.net
Tue Mar 8 11:26:49 EST 2011


On 2011-3-8 17:08, Godefroid Chapelle wrote:
> Hello,
>
> GenericSetup has global registries for profiles and steps.
>
> They are a PITA when testing.
>
> For instance, plone.app.testing has to make a complicated dance to
> record and restore their state.

How come? There is a very simple cleanup function for them iirc?

> In branch gotcha-registries-use-utilities, I have removed those global
> storages.
>
> The profiles and steps are instead registered as global named utilities.

I'm not convinced using the ZCA makes sense for this. The steps are a 
simple list of hooks indexed by name, and the ZCA is massive overkill 
for that purpose and very painful to introspect.

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