[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>
&nbsp;&nbsp;&nbsp; index_html<br>
&nbsp;&nbsp;&nbsp; MySQL database<br>
&nbsp;&nbsp;&nbsp; [+]SQLPoll (SQL Poll folder)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....methods<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; index_html (displays all the questions) &lt;--(2)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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. &lt;dtml-with &quot;SQLPoll&quot;&gt;&lt;dtml-var index_html&gt;&lt;/dtml-with&gt;<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. &lt;dtml-var &quot;SQLPoll.index_html(_.None, _)&quot;&gt;<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 &quot;DTML namespace&quot;<br><br>
Danny</html>