On Tue, 14 Mar 2000 15:27:53 -0500, Jason Spisak <444@hiretechs.com> said:
Hi Jason and all, I would like to report the same bug. Me and Jason have reported this bug a few days ago on Zope list, but no response. Below, you can see little more about this bug it is a copy of what I have posted on Zope list. Hi Zopists, I have tried to expand tree and a Zope error has appeared. Below, you can see setting up of expand_all variable together with the beginning of my tree. The collapse_all is working without any problem, the tree collapses when the collapse_all is set up to '1'. The problem is only with the expand_all. Is it Zope bug or something wrong on my side? part of my code <A HREF="<dtml-var URL0>?expand_all=1"><IMG SRC="/p_/pl" ALT="Expand" BORDER="0"> <dtml-tree branches_expr="objectValues(['Folder', 'DTML Document', 'File', 'Image'])" skip_unauthorized=1 sort=is_sort_objects> Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: branches Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable branches. The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: is_tree_manage) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: is_tree_manage) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: is_tree_manage) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: is_tree_manage) File /usr/lib/zope/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: a tree tag) File /usr/lib/zope/lib/python/TreeDisplay/TreeTag.py, line 210, in tpRender (Object: ElementWithAttributes) KeyError: (see above) Thank you, Petr JS> Anyone...Petr Did anyone speek up about the tree tag JS> expand_all=1 bug that returns a name error "Branches"? I JS> haven't seen a reply on this and it's a pretty basic function JS> ofthe tree tag that isn't working now. JS> All my best, JS> -- Jason Spisak 444@hiretechs.com JS> _______________________________________________ Zope-Dev JS> maillist - Zope-Dev@zope.org JS> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross JS> posts or HTML encoding! ** (Related lists - JS> http://lists.zope.org/mailman/listinfo/zope-announce JS> http://lists.zope.org/mailman/listinfo/zope ) I hope that somebody will response. Thanks, Petr -- Petr Knápek PVT.NET, e-mail: petr.knapek@pvt.net, tel:+420-5-41 558 394 PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic