[Zope] Using Request.set

Dylan Reinhardt zope at dylanreinhardt.com
Tue Jan 6 18:39:54 EST 2004


On Tue, 2004-01-06 at 14:10, Asad Habib wrote:
> Hello. I am trying to set a variable I create using REQUEST.set to
> sequence-number for a sequence I am looping through but cannot seem to do
> so. I tried several different variations but Zope flagged me with a syntax
> error. Any help would be greatly appreciated. Thanks.

Use the prefix attribute:

<dtml-in my_list prefix=my_item>
    <dtml-call "REQUEST.set('my_val', my_item_number)">
</dtml-in>

HTH,

Dylan




More information about the Zope mailing list