[Zope] passing method name thru form parameter

hans hans@beehive.de
Tue, 07 May 2002 16:30:30 +0100


Dan Meszaros wrote:

> Hi,
>
> i need to pass the method name thru the url, for example
>
> <A href="?method=methods.method1> method1 </a>
> <A href="?method=methods.method2> method2 </a>
> etc.
>
> how do i call the method in dtml document, that gets the method name
> as a parameter?
>
> doing:
>
> ...
> <dtml-var method>
> ...
>
> doesn't help, it just shows "methods.method1" string.

<untested>
<A href="?method=method1> method1 </a>
<A href="?method=method2> method2 </a>

and later

<dtml-call "methods[method]">

assuming methods is a folder
</untested>
--
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299