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 e im Folder 'merkmale' des Pfades '/sap_root/leaves/merkmale' eine Methode 'merkmale_index' definiert, die mir nach dem Vorbild der QickStart-Anleitung einen Baum generiert. Diese Methode (merkmale_index) will ich aus der DTML-Datei 'index_html' im Ordner 'merkmal' des Pfades '/sap_root/documentation/merkmal' aufrufen. Wie kann ich das tun? Gruss, Uli __________________________________________________ Ulrike Ainser HighQ IT for the manufacturing industry PDM-Team Otto-Hahn-Straße 40 85521 Ottobrunn +49.(0)89.608766-633 uli@highq-it.de
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 `------------------>
participants (2)
-
Casey Duncan -
Ulrike Ainser