[Zope] nested dtml-with

Max M maxm@mxm.dk
Thu, 13 Jun 2002 11:11:46 +0200


Paul Zwarts wrote:

>The trick is that I am currently in the root namespace. I tried
>ascending the tree with the code I pasted earlier, but it seems to just
>query all iterations from root, and of course this doesn't work.  
>  
>


You certainly did. And you are looking in the wrong direction for your 
solution...

You need::
path = ['path', 'to', 'object']
obj = self.getPhysicalRoot().restrictedTraverse(path)

All built in :-)

regards Max M