[Zope] Zope sequence-item problem

Phil Harris phil.harris@zope.co.uk
Fri, 18 May 2001 15:29:36 +0100


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

Think carefully on why it doesn't work, try writing the same thing in pure
Python code.

----- Original Message -----
From: "Bobby Mathew" <bobby@dialognet.com>
To: <zope@zope.org>
Sent: Friday, May 18, 2001 3:30 PM
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 )