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

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

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

Reply via email to