[Zope] passing a dtml-var to another method: dtml-let has no effect?

Dieter Maurer dieter@handshake.de
Mon, 4 Feb 2002 23:37:37 +0100


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>




Dieter