[Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jan 12 03:03:47 EST 2007

On Thursday 11 January 2007 16:10, Dieter Maurer wrote:
> I can see that such a strategy may be helpful when one wants to
> resolve conflicts in some way. However, I do not see
> why is should be necessary for registration that are not expected
> to conflict.

Going into some detail. If imports have registration side-effects, then a test 
suite can never cleanly tear down. After each test suite run, the entire 
component architecture registry is cleared. That would also clear all your 
regstrations made during import time. There are strategies to deal with this, 
see zope.security package, but it is tedious and takes time to get fully 

BTW, you can use the "--repeat/-N" option to run tests multiple times. This 
will show you, if you setup and teardown correctly.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training

More information about the Zope-Dev mailing list