[Zope] calling a method

Casey Duncan cduncan@kaivo.com
Wed, 18 Apr 2001 10:50:02 -0600


Ulrike Ainser wrote:
> 
> Hello eveybody,
> 
> maybe someone on this maillinglist can help me?!
> 
> I have got a method 'attribute_index' in the  folder 'attribute' of the path
> '/sap_root/leaves/attributes' defined, that displays a tree as it is given
> in the Quick Start Tutorial of Zope .
> 
> I'd like to call this method out of the DTML file 'index_html' in the folder
> 'attribute' of the path '/sap_root/documentation/attribute'. How can I do
> that?
> 
> I already tried:
> 
> ***index_html***
> <html>
> <dtml-var "sap_root.leaves.merkmale.merkmale_index()">
> </html>
> 
> and
> 
> <html>
> <dtml-var sap_root.leaves.merkmale.merkmale_index>
> </html>
> 
> ******
> 
> what did I do wrong?
> 
> Uli
> 

Put an index_html method(!) in leaves (or above) with this code:

<dtml-var expr="_[getId()+'_index']">

Navigating to "/sap_root/leaves/merkmale" would call "merkmale_index" in
"merkale".

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>