[Zope] [DTML] creating variables

Tres Seaver tseaver@palladion.com
Sat, 06 Mar 1999 15:40:16 -0600


David Ascher wrote:

> Subject: 
> 
> On Fri, 5 Mar 1999, Pavlos Christoforou wrote:
> 
> > On Fri, 5 Mar 1999, David Ascher wrote:
> >
> > > What's the equivalent DTML?  Can one create a variable in DTML?
> >
> > <!--# with "_.namespace(empty=1)"-->
> > ...
> > <!--#/with-->
> 
> Hmm. I want to create a variable whose value is given by another value.
> Doing:
> 
> <!--#with "_.namespace(foo=<!--#var id-->)"-->
> <!--#var foo-->
> <!--#/with-->
> 
> doesn't make it through the parser.
> 
> I've tried adding various quotes to no effect.
> 
> I think I'm going to work on understanding ExternalMethods -- this syntax
> is not made for me. =)

I too miss Python when working in DTML.  But in this case, I think that the
following will help:

  <!--#call "REQUEST.set( 'foo', id )-->


-- 
=========================================================
Tres Seaver         tseaver@palladion.com    713-523-6582
Palladion Software  http://www.palladion.com