[Zope] How to Pass values to a DTML method ??

Dieter Maurer dieter@handshake.de
Mon, 11 Sep 2000 23:23:47 +0200 (CEST)


Stuart Foster writes:
 > I have a DTML method that is called from a document. I need to pass a value
 > to it like a parameter would be passed to a function.
 > 
 > <dtml-var some_method(param=value)>
That does not look too bad, but you forgot the "..." around the call.

You should include two positional parameters as well:

	<dtml-var "some_method(_.None,_,param=value)">

Otherwise, you cut the namespace propagation.


Dieter