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 Akkerman <wich...@wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.
Zope-CMF maillist  -  Zope-CMF@zope.org

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to