[Zope] A little help on path namespace
Andy McKay
andym@ActiveState.com
Tue, 6 Feb 2001 14:34:43 -0800
ZopeFind as used in \lib\python\OFS\FindSupport.py will find an object. Im
not sure what you mean by look backwards, but once you have an object you
can rummage through that objects parents and namespace.
--
Andy McKay.
----- Original Message -----
From: "Ausum" <augusto@artlover.com>
To: <zope@zope.org>
Sent: Tuesday, February 06, 2001 2:18 PM
Subject: [Zope] A little help on path namespace
> I have this folder structure:
> folder0.folder1.folder2.folder3.object1
> and I want to call within object1, properties from an object0 located at
> folder1 (within the tree). I know that something like this would work:
>
> <dtml-with "folder1.object0">
> <dtml-var anyproperty>
> </dtml-with>
>
> But I would like to find an "automatic" way, for wich I don't have to
write
> the "folder.object0" thing, because the code will be used in a product,
and it
> must be able to be used at any folder level.
> Is there a Python or DTML function that could locate the current object
> within the tree, and then look backwards for another object? (I haven't
find
> it so far). Any other ideas if not?
>
> Thanks in advance,
>
> Ausum
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>