[Zope] Blocking Sibling inheritance

Dieter Maurer dieter at handshake.de
Wed Mar 2 13:41:34 EST 2005


Jay Zeemer wrote at 2005-3-2 09:43 -0500:
>I am in the process of examining Zope for some possible applications.
>Currently I am having an issue with Zope being a bit to smart.  I have a
>directory \Dir1\ and under it I have 2 subdirectories \Dir1\SubA\ and
>\Dir1\SubB\.  The problem I am having is I can go to \Dir1\SubA\SubB\ and
>gain access to things that are in \Dir1\SubB\, I need to be able to block
>sibling level inheritance.  Is this possible in Zope??  Or are there any
>other ways to block this with out creating a SubB object in \Dir1\SubA\ ??

What you see it the effect of Zope's "acquisition".

It essentially (but there is more to say) means that
any object "acquires" all attributes of its ancestors.

In Zope2, it is very difficult to restrict acquisition.
Zope3 does by default no longer use acquisition (about which
I am sad).

-- 
Dieter


More information about the Zope mailing list