[Zope] passing a dtml-var to another method: dtml-let has no effect?
Panos Hilaris
philaris@cs.ntua.gr
Tue, 05 Feb 2002 18:54:47 +0200
Thanks for your answer. I am new to zope and even though I am reading the zope book, I have not grasped completely the
namespace stuff.
For my problem, I used something like:
<dtml-call expr="REQUEST.set('x','foo')">
Also, thanks for your link.
With friendly salutations,
Panos Hilaris
>From: Dieter Maurer <dieter@handshake.de>
>Date: Mon, 4 Feb 2002 23:37:37 +0100
>To: Panos Hilaris <philaris@yahoo.com>
>Cc: zope@zope.org
>Subject: Re: [Zope] passing a dtml-var to another method: dtml-let has no effect?
>
>Panos Hilaris writes:
> > ....
> > However, if I try:
> >
> > <dtml-let x="'foo'">
> > <dtml-call sqlDistinct>
> > </dtml-let>
> >
> > where sqlDistinct is a ZSQL Method having an argument with the name x,
> > I get a KeyError.
> > ...
>You do not read documentation?
>
> ZSQL Methods get their parameters either from REQUEST or (exclusive)
> from keyword parameters passed in.
>
>Suggested reading: the Zope Book or
>
> <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
>