[Zope] dtml-tree problems and/or bugs ?

Stefan Radke stefan.radke@systemonic.de
Mon, 25 Jun 2001 09:51:34 +0200


Hi !

The tree tag gives me two problems. The page I wrote basically has the
follwing structure:

<dtml-var standard_html_header>
<h2><dtml-var title></h2>
<table align=right cellpadding=0 cellspacing=2 width=280 hspace=20
bgcolor=red><tr><td width=100%>
<table align=center cellspacing=0 cellpadding=4 width=100%
bgcolor='#FFFFE8'><tr><td width=100%>
<dtml-var sitetree></td></tr></table></td></tr></table>
<dtml-var abstract fmt=structured-text>
<dtml-if abstract><dtml-var login></dtml-if>
<br clear='all'>
<dtml-var standard_html_footer>

The 'sitetree' is another DTML Method which renders the tree:

<h3>Overview</h3>
<a href="?expand_all=1">Expand All</a> | <a
href="?collapse_all=1">Collapse All</a><hr size=1 noshade>
<dtml-tree branches_expr="objectValues(['Folder'])" skip_unauthorized>
   <dtml-if "getProperty('title')!=''"><a href="<dtml-var
tree-item-url>"><dtml-var title></a><dtml-else></dtml-if>
</dtml-tree>

All I want is a table of contents, appearing on the right hand of the
page. Everything works fine, but:

(1) when I select the 'Expand All' link, the page is rendered
incomplete. For some reason, the standard_html_footer is not rendered.
In Netscape this ends with the complete page not showing, because the
closing tags at the page's end are missing   :-(

(2) Some of the folders have access restrictions. When I move the
header, '<h2><dtml-var title></h2>' down below the tables encapsulating
the tree, I get a login prompt. That means that Zope tries to retrieve
the 'title' from another entity than the current folder, which is
unrestricted. Looks like some variable(s) are lingering with values from
the tree-tag operation.

Has anybody experienced such results ?

Thank you, Stefan.