[Zope] How do I call a method that resides in a child folder?
Danny William Adair
danny@adair.net
Wed, 19 Sep 2001 02:19:22 -0400
<html>
At 00:16 28/08/2001 +0100, Norman Khine wrote:<br>
<blockquote type=cite class=cite cite>Hi,<br>
I am trying out the SQLPoll product and have the following setup.<br>
[+] MainFolder<br>
index_html<br>
MySQL database<br>
[+]SQLPoll (SQL Poll folder)<br>
....methods<br>
index_html (displays all the questions) <--(2)<br>
vote_big_html<br><br>
now I want to create on my root index_html, something like a slashdot<br>
pollbox based on the vote_big_html page, but only showing one question.<br><br>
how do I call indez_html (2) from the root index_html page?</blockquote><br>
Doesn't one of these work?<br><br>
1. <dtml-with "SQLPoll"><dtml-var index_html></dtml-with><br>
(I've put SQLPoll in double quotes here so it doesn't render (just in case it would).<br>
If it's a plain vanilla folder it won't and you can leave it unquoted)<br><br>
2. <dtml-var "SQLPoll.index_html(_.None, _)"><br>
(This time we should pass client and namespace, cos index_html is inside a python expression)<br><br>
hth<br>
and doesn't look too confusing,<br>
be sure to check out the docs and mailing list archives for "DTML namespace"<br><br>
Danny</html>