[Zope3-Users] Seeking Explicit Acquisition Support re Climbing
Containment Hierarchy
Michael Howitz
mh at gocept.com
Thu Apr 6 02:45:42 EDT 2006
Am Mittwoch, den 05.04.2006, 09:36 -0500 schrieb Jeff Rush:
> I know that Zope3 dropped 'implicit' acquisition, but is there any support for
> *explicit* acquisition that walks the __parent__ containment hierarchy.
> Something that follows the same rules as traverse() to look up a name, but
> from bottom-to-top instead of traverse() from top-to-bottom?
>
> I know I can roll my own and special case it but I thought I'd ask before I
> duplicate existing functionality.
Hi,
for a project we wrote the following function. It climbes up the
conatinment hierachy until it finds an object which implements the given
interface.
HTH,
mac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.py
Type: text/x-python
Size: 1909 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20060406/f17e0d71/utils.py
More information about the Zope3-users
mailing list