[Zope] unsettable variable?

karthick ramanarayanan karthick@pepco.no
Thu, 8 Mar 2001 21:36:47 +0100 (CET)


Hi,
 Can you trying using the <dtml-let > tag within the <dtml-in>
and check if it overrides.
Thanks,
A.R.Karthick

> Thanks, that is what is happening.
> 
> However, I still don't understand it.  If I do "REQUEST.set" I set it in
> the REQUEST namespace.  
> 
> But where is the one that came from <dtml-in...>?  And how can I set
> that one?
> 
> Thanks,
> 
> Regards,
> 
> JJ
> 
> karthick ramanarayanan wrote:
> > 
> > Hi,
> > Try printing,
> >  <dtml-var action_text>
> > and
> > <dtml-var "REQUEST['action_text']">
> > 
> > Should work,
> > Bye,
> > A.R.Karthick
> > 
> > > I've got a case like this:
> > >
> > >  <dtml-in get_action_text>
> > >   <dtml-if expr="action_text=='WIPE_OUT_THIS_VALUE'">
> > >    <dtml-call "REQUEST.set('action_text','atest')">
> > >    <dtml-call "REQUEST.set('zction_text','ztest')">
> > >     action_text is <dtml-var action_text>,
> > >     zction_text is <dtml-var zction_text>
> > >   </dtml-if>
> > >
> > >
> > > Here is what shows up for the values when the above is run:
> > >
> > >    action_text is WIPE_OUT_THIS_VALUE, zction_text is ztest
> > >
> > >
> > > Why can I not set the 'action_text'?
> > >
> > > It really seems like there must be something really obviously stupid 
in
> > > what I am doing, but I just can't see it.
> > >
> > > Are there cases where a REQUEST.set will have no effect on a dtml-var?
> > >
> > > Regards,
> > >
> > > JJ
> > >
>