[Zope] dtml-with string

nuno nuno@fccn.pt
Wed, 21 Mar 2001 19:47:20 -0000


it doesn't work also !! I saw that post !
The problem is the string "PARENTS[0].xpto.xpto2"
I had read a mail that the solution is to work with paths
like dir/dir1/dir2/ then i solved the problem with  REQUEST.resolve_url

thank you all

PS: i had tried both ways _.getitem(str) and _[str] !
----- Original Message ----- 
From: "Tim Cook" <tim@freepm.org>
To: "nuno" <nuno@fccn.pt>
Cc: "Phil Harris" <phil.harris@zope.co.uk>; <zope@zope.org>
Sent: Wednesday, March 21, 2001 7:52 PM
Subject: Re: [Zope] dtml-with string


> nuno wrote:
> > 
> > Nope !
> > 
> > even if the string has the real path: str='PARENTS[0].location.place'
> > it doesn't work the use of <dtml-with "_[str]">
> > 
> > thanks
> 
> Didn't we just answer this yesterday? The list archives are a
> VERY good, fast resource:
> 
> Try:
> <dtml-with "_.getitem(str)">
> 
> -- 
> Tim Cook, President - FreePM,Inc. 
> http://www.FreePM.com Office: (901) 884-4126
> ONLINE DEMO: http://www.freepm.org:8080/FreePM
>