[Zope] Zope sequence-item problem
Mike Renfro
renfro@tntech.edu
Fri, 18 May 2001 09:28:50 -0500
On Fri, May 18, 2001 at 08:00:21PM +0530, Bobby Mathew wrote:
> <dtml-in emailid>
> <dtml-var sequence-item>
> <dtml-call "REQUEST.set('myvar', sequence-item)">
> </dtml-in>
>
> I dont understand why its looking for sequence when i have clearly put
> sequence-item ???
Write this on a sticky note and attach it to your monitor -- 'whenever
I use double-quotes, I'm in Python mode; curse DC for ever using
hypens in their variable names' (slight joke). Python is evaluating
sequence-item as sequence minus item.
Try either:
<dtml-in emailid>
<dtml-let item=sequence-item>
<dtml-var item>
<dtml-call "REQUEST.set('myvar',item)">
</dtml-let>
</dtml-in>
or
<dtml-in emailid>
<dtml-var sequence-item>
<dtml-call "REQUEST.set('myvar',_['sequence-item'])">
</dtml-call>
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu