[Zope] Re: Blocking Sibling inheritance

Tres Seaver tseaver at zope.com
Wed Mar 2 10:06:46 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jay Zeemer wrote:
| Greetings all,
| 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\ ??

The "sibling inheritance" you are describing is Zope's "acquisition".
Folders derive from Acquisition.Implicit, which means they are willing
to acquire any "non-private" name from their parents.

To prevent this behavior, place SubA with a Folder-like object which
derives instead from Acquisition.Explicit.

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCJdaGGqWXf00rNCgRAl7lAJ9wkt7LsRDZboQ+syEbVViTceQOkQCfQ3lD
P9Ai7Ym0LdNeStCVoEBQTcM=
=6IyR
-----END PGP SIGNATURE-----



More information about the Zope mailing list