Ok, this worked :

<dtml-with bid_records>
    <dtml-with "_.getitem(_['selection'])">
      <dtml-call "REQUEST.set('cur_bidder', bidder)">
    </dtml-with>
</dtml-with>

Thanks for the direction, Jerry!

sbb

> -----Original Message-----
> From: Spicklemire, Jerry [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 2:58 PM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: Variable name use in with statement
> 
> 
> Scott Butchill wonders if:
> 
> "there is a simpler way to do this."
> 
> Not much simpler, but how about:
> 
> <dtml-call "REQUEST.set('user_select', ['walkon', 'fullhouse'])">
> <dtml-with bid_records>
>  <dtml-in user_select>
>   <dtml-if "_.str(REQUEST.form['selection']) == _['sequence-item']">
>    <dtml-with "_['sequence-item']">
>     <dtml-call "REQUEST.set('cur_bidder', bidder)">
>    </dtml-with>
>   <dtml-elif "_['sequence-index'] == -1>
>    <dtml-with snoopy>
>     <dtml-call "REQUEST.set('cur_bidder', bidder)">
>    </dtml-with>
>   </dtml-if>
>  </dtml-in>
> </dtml-with>
> 

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to