[Zope-CMF] GenericSetup global registries
Godefroid Chapelle
gotcha at bubblenet.be
Tue Mar 8 11:43:58 EST 2011
Le 08/03/11 17:26, Wichert Akkerman a écrit :
> 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?
zope.testing.cleanup functions are all or nothing; there are no ways to
clear a part of what was loaded through ZCML.
plone.testing zca.py uses component registry chaining to enable partial
unload of components registrations.
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Zope-CMF
mailing list