[Zope-dev] [Newbie] #tree tag - help!
Ian Clarke
I.Clarke@strs.co.uk
Fri, 15 Oct 1999 12:20:18 +0100
I have been trying to create a site making use of the #tree
tag. To get started I tried to follow the "Inplementing a navigation
tree" section of the Zbook tutorials, although I have removed some
superfluous stuff in an effort to track down the bug.
Everything seems to display correctly when I initially view the page (a
tree of my "Outline" folder is displayed), however whenever I click on
any of the sub-folders I get the error which you can find at the end of
this email.
Here is my "ll_menu" code (I suspect the problem is in here somewhere):
<SPAN CLASS="tree">
<!--#tree Outline branches_expr="objectValues(['Folder', 'DTML
Document'])" nowrap=1 sort=id-->
<!--#if expr="meta_type == 'Folder'"-->
<dtml-var id>
<!--#else-->
<A HREF="<!--#var "Outline.absolute_url()"-->/<!--#var
tree-item-url-->?<!--#if tree-s-->tree-s=<!--#var
tree-s--><!--#/if--><!--#if tree-e-->&tree-e=<!--#var
tree-e--><!--#/if--><!--#if tree-c-->&tree-c=<!--#var
tree-c--><!--#/if-->"><!--#var title_or_id--></a>
<!--#/if-->
<!--#/tree-->
</SPAN>
Can anyone give me a pointer as to what is going wrong? Any help would
be much appreciated, this problem is giving me a headache!
Also, on a general point - is there any effort being made to make the
error reporting system more newbie friendly?
Ian.
Traceback (innermost last):
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /home/zope/Zope/lib/python/Zope/__init__.py, line 201, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /home/zope/Zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: main)
File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: main)
File /home/zope/Zope/lib/python/OFS/DTMLDocument.py, line 166, in
__call__
(Object: main)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: main)
File /home/zope/Zope/lib/python/OFS/DTMLMethod.py, line 141, in
__call__
(Object: standard_html_header)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: standard_html_header)
File /home/zope/Zope/lib/python/OFS/DTMLDocument.py, line 162, in
__call__
(Object: ll_menu)
File /home/zope/Zope/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: ll_menu)
File /home/zope/Zope/lib/python/TreeDisplay/TreeTag.py, line 151, in
render
(Object: Outline)
AttributeError: __call__
--
Ian Clarke Email: I.Clarke@strs.co.uk
Homepage: http://www.gnu.demon.co.uk/
Also see: http://freenet.on.openprojects.net/
"All we see and all we seem is but a dream within a dream"
_______________________________________________
Zope maillist - Zope@zope.org
http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see:
http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org -
http://www.zope.org/mailman/listinfo/zope-dev )