[Zope] NameSpace Question

Kapil Thangavelu kvthan@wm.edu
Mon, 24 Apr 2000 23:30:51 -0400


Michel Pelletier wrote:
> 
> Kapil Thangavelu wrote:
> >
> >
> > short solution:
> > you basically want to add some hidden variables to your form2 like
> > <input type="hidden" value="<dtml-var row-items>" name="row-items>
> 
> This is essentially the correct answer, note that if row-items is a
> sequence then you have to be more clever:
> 
> <dtml-in row-items>
>   <input type=hidden name="row-items:list" value="<dtml-var
> sequence-item>">
> </dtml-in>
> 
> -Michel

hmm...

things are a bit simpler i think

if you do form coercion(:list, :int) in form1 than call another form2,
form2 has access to the variables in their coerced form, so the coercion
is not needed although its a good idea for code documentation and if the
form can be called from places other than form1. even if you want to use
coercion again in the second form you don't need to use <dtml-in>, just
calling 
<input type=hidden name="row-items:list" value="<dtml-var row-items>">
will insert a list. 

Kapil
www.sin.wm.edu