Its the <dtml-with REQUEST>, that mucks up the namespace lookup for "value"
<dtml-call "REQUEST.set('value', _['sequence-item'])">
Doesnt work:<dtml-var value>, works: <dtml-var "REQUEST['value']">
But with REQUEST is a rather wierd thing to do. Are you sure you want to do
----- Original Message -----
From: "R. David Murray" <[EMAIL PROTECTED]>
To: "Sidnei da Silva" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 3:15 PM
Subject: Re: [Zope-dev] BUG or FEATURE?
> On Tue, 23 Oct 2001, Sidnei da Silva wrote:
> > I dont know how it was supposed to work, but i think that if the REQUEST
> > immutable inside a dtml-with, it should be not allowed to call
> > inside it.
> It isn't immutable. The second and subsequent sets should work.
> > <dtml-call "REQUEST.set('var', sequence-item)"> <== only works first
> Well, I don't know quite what you are observing, but this code is broken.
> Inside the quotes you are in python mode, and 'sequence-item' in python
> is the variable sequence minus the variable item. Since it didn't throw
> error, you must have variables by those names that understand
> Try _.getitem('sequence-item') instead.
> I suspect this thread belongs on zope, not zope-dev.
> Zope-Dev maillist - [EMAIL PROTECTED]
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope )
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -