[Zope] [Fwd: [Zope] Not grocking RESQUEST.set syntax]

Daniel Rusch drusch@globalcrossing.com
Wed, 25 Oct 2000 15:33:43 -0500


This is a multi-part message in MIME format.
--------------A4F08EE34F11FE96757B67E0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

 
--------------A4F08EE34F11FE96757B67E0
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

X-Mozilla-Status2: 00000000
Message-ID: <39F7436F.E6F1CD5B@globalcrossing.com>
Date: Wed, 25 Oct 2000 15:32:47 -0500
From: Daniel Rusch <drusch@globalcrossing.com>
X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.5-15 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Noah <nspurrier@bluelight.com>
Subject: Re: [Zope] Not grocking RESQUEST.set syntax
References: <KHEIKIAJNCPCHOCJPONNEEAHCAAA.nspurrier@bluelight.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Try:
<dtml-in MyFavoiteZSQLMethod>
<dtml-call "REQUEST.set('filename', filename)"> 
<dtml-call some_other_thing_that_uses_filename>
</dtml-in>

This assumes that MyFavoiteZSQLMethod returns the variable filename

Dan

Noah wrote:
> 
> I'm still not grocking the syntax for setting REQUEST fields.
> I want to set a REQUEST field "filename" to be the value returned
> by a ZSQL call. I want something like this (pseudo-code of what I want):
> 
> <dtml-let FOO=MyFavoiteZSQLMethod>
> <dtml-call "REQUEST.set('filename', FOO)">
> <dtml-call some_other_thing_that_uses_filename>
> </dtml-let>
> 
> That does not work because FOO gets set to something like:
> <Shared.DC.ZRDB.Results.Results instance at 7760b0>
> I tried sticking this inside <dtml-in><dtml-in> to get
> at the sequence-item, but I just ended up getting confused.
> 
> Yours,
> Noah
> 
> _______________________________________________
> 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 )

--------------A4F08EE34F11FE96757B67E0--