[Zope3-dev] Containment constraints

Chris Withers chrisw@nipltd.com
Mon, 16 Jun 2003 09:08:45 +0100


Stephan Richter wrote:
> For example you could have a massive CA-like solution, where object have an 
> ICreationPolicy and IAddPolicy adapter associated with it. Containers would 
> additionally have something like IContainmentPolicy. But wouldn't this be 
> overkill?

Of course is it, so why not just have an isAllowed method on the container, and 
a matching one on the new object. If either return false then creation is veto'ed.

How is all the related to security?

cheers,

Chris