[Zope-dev] Tree-expand bug!?

Petr Knapek knapek@knapek.pvt.net
08 Mar 2000 11:09:32 +0100


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
-- 
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