[Zope] passing method name thru form parameter

Dan Meszaros dm@petamem.com
Tue, 7 May 2002 16:24:24 +0200 (CEST)


thanks, Hans,

i had no problem with
<dtml-call "methods.method1">
but it gives me no output :( i need to include the output of
methods.method1 to that dtml page.

<dtml-call "methods[method1]"> seems not to be working, anyway.


> 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
>
>