How do I accommodate two trees in one document?
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>"> <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>"> <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
On Mon, 25 Oct 1999, Steen Suder wrote:
Can't I have two trees in one document?
Not totally sure, but I think you can't :( Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
At 12:05 pm +0000 25/10/99, Steen Suder wrote:
I'm trying to make a navigationpage consisting of two trees with a <hr> between them.
You won't be able to - this is a limitation of the tree tag.
Can't I have two trees in one document?
Unfortunately no.
What have I missed from the documentation?
Nothing :( tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
At 14:05 25/10/99 , Steen Suder wrote:
Can't I have two trees in one document?
No, you can't at the moment. Patches are always welcome =). -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (4)
-
Martijn Pieters -
Oleg Broytmann -
Steen Suder -
Tony McDonald