[Zope] Zope sequence-item problem

Steve Drees drees@the-bridge.net
Fri, 18 May 2001 09:34:09 -0500


Everything inside " quotes in a dtml-call is python code.
sequence-item is python for sequence minus item.

<dtml-call "REQUEST.set('myvar',_['sequence-item'])"> is what you want.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Bobby
> Mathew
> Sent: Friday, May 18, 2001 9:30 AM
> To: zope@zope.org
> Subject: [Zope] Zope sequence-item problem
> 
> 
> Hi
> I am trying this code. basically i just want to assign the 
> current value of
> sequence-item variable into another variable. But i keep getting an error
> message of some sort - either the syntax is wrong or the name 
> error etc,,,,
> 
> <dtml-in emailid>
>    <dtml-var sequence-item>
>    <dtml-call "REQUEST.set('myvar', sequence-item)">
> </dtml-in>
> 
> Zope has encountered an error while publishing this resource.
> 
> Error Type: NameError
> Error Value: sequence
> 
> 
> I dont understand why its looking for sequence when i have clearly put
> sequence-item ???
> 
> can anyone help please ?
> 
> thanks
> 
> bobby
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>