[Zope] Questions re: REQUEST, external methods; newbie stupidity at play

Chris Withers chrisw@nipltd.com
Thu, 17 Jul 2003 12:58:21 +0100


Dylan Reinhardt wrote:
> Here's what you're trying to do:
> 
> <dtml-call "REQUEST.set('some_var', some_function())">
> <dtml-call "REQUEST.set('some_var', some_other_function(some_var))">
> 
> That's not going to work.  Unlike Python, DTML doesn't seem to like
> using a variable in an expression whose output is stored in the same
> variable.  Maybe somebody smarter could offer an explanation why not.

Don't really see why not...

But then, when would you want a construct like the above?

cheers,

Chris