[Zope3-Users] Constraint checks for adding objects to a container?

Tom Dossis td at yoma.com.au
Mon Dec 6 00:38:34 EST 2004


Who is responsible for enforcing container/contained constraints?

I suspect I should use IZAPI.add to ensure the proper checks happen, but 
this is missing from zope.add.zapi ...

 >>> from zope.app import zapi
 >>> 'add' in dir(zapi)
False
 >>> 'add' in zapi.__all__
True

The BrowserView zope.app.container.browser.adding.py does all the 
checks, but I'd like to add items to containers programmatically.

Thanks
-Tom


More information about the Zope3-users mailing list