[Zope] dtml-with string

nuno nuno@fccn.pt
Wed, 21 Mar 2001 18:37:57 -0000


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

----- Original Message ----- 
From: "Phil Harris" <phil.harris@zope.co.uk>
To: "nuno" <nuno@fccn.pt>; <zope@zope.org>
Sent: Wednesday, March 21, 2001 4:56 PM
Subject: Re: [Zope] dtml-with string


> How about 
> 
> PARENTS[0].location[dir]
> 
> 
> ----- Original Message ----- 
> From: "nuno" <nuno@fccn.pt>
> To: <zope@zope.org>
> Sent: Wednesday, March 21, 2001 4:48 PM
> Subject: [Zope] dtml-with string
> 
> 
> > Hi all !
> > 
> > i am having a problem with dtml-with tag
> > the problem is:
> > 
> > i want to do a <dtml-with "PARENTS[0].location.place">
> > 
> > the problem is that instead of writing PARENTS[0].location.place
> > i want to use a variable that is a built string:
> > 
> > <dtml-call "REQUEST.set('location', 'PARENTS[0].location.' + dir)">
> > 
> > dir is a dtml-var which has the string place !
> > and then use something like:
> > <dtml-with "_[location]">
> > 
> > does someone knows how to do this ??
> > I have tried tips in zope.org but unsucessfuly
> > 
> > here's the zope error:
> > 
> > Error Type: KeyError
> > Error Value: PARENTS[0].location.place
> > 
> > thank you all
> > 
> > Nuno
> > 
> > 
> > _______________________________________________
> > 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 )
> 
> 
> _______________________________________________
> 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 )
>