On Thu, 26 Oct 2000, 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 think your simplest option is to use:

<dtml-call "REQUEST.set('filenale', MyFavouriteZSQLMethod(_.None, _) )">

All that _.Non, _  stuff is the namespace etc that Zope normally passes to 
your methods.  (I don't fully understand it, I just know it works :)

> I tried sticking this inside <dtml-in><dtml-in> to get
> at the sequence-item, but I just ended up getting confused.
> Yours,
> Noah

Have a better one,

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to