[Zope] How do I accommodate two trees in one document?

Steen Suder sfs@kollegie6400.dk
Mon, 25 Oct 1999 12:05:47 GMT


I'm trying to make a navigationpage consisting of two trees with a <hr>
between them.

Here's the offending code snippet:

<dtml-tree branches_expr="objectValues(['Folder'])" single=1 sort=title>

	<IMG SRC="<dtml-var icon>">&nbsp;&nbsp;<a href="<dtml-var tree-item-url>"
target="MainWindow"><dtml-var title></a>

</dtml-tree>

<hr width="90%" align="left">

<dtml-tree endusermisc branches_expr="objectValues(['Folder'])" single=1
sort=title>

	<IMG SRC="<dtml-var icon>">&nbsp;&nbsp;<a href="endusermisc/<dtml-var
tree-item-url>" target="MainWindow"><dtml-var title></a>

</dtml-tree>


The problem:
Having both trees "enabled" (with or without dtml-comment), expanding a
node gives the error:

Error Type:
AttributeError
Error Value: 'tuple'
object has no attribute
'append'

Traceback:

Traceback (innermost last):
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/Zope/__init__.py,
line 201, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/ZPublisher/Publish.py, line
165, in publish
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: NaviBar)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/ZPublisher/Publish.py, line
102, in call_object
    (Object: NaviBar)
  File /usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/OFS/DTMLMethod.py,
line 145, in __call__
    (Object: NaviBar)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: NaviBar)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py,
line 154, in render
    (Object: endusermisc)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py,
line 227, in tpRender
    (Object: ElementWithAttributes)
  File
/usr/src/redhat/BUILD/Zope-2.0.0-src/lib/python/TreeDisplay/TreeTag.py,
line 543, in apply_diff
    (Info: ([None, (['AAAAAAAAAXQ=', []],)], ['AAAAAAAAAh4=']))
AttributeError: (see above)

Can't I have two trees in one document?

What have I missed from the documentation?

-- 
Best regards / mvh.,
Steen Suder
sysadm kollegie6400.dk
OpenSource - Sign of the time