[Zope] dtml-tree ques
AM
list_subscriber@neurobs.com
Tue, 27 Aug 2002 00:30:10 -0700
I was doing that but unsuccessfully
This is my filtering function:
root = context.pres_docs_storage
obs = root.objectValues()
ob_list = []
for ob in obs:
if ob.getId() != 'examples': ob_list.append(ob)
return ob_list
This works too: the root is a LocalFS instance, and this function
returns a list of -
<File ObjectWrapper instance at 8C8B4B8>
My tree method:
<dtml-let root="pres_docs_storage">
<dtml-tree name=root branches_expr="filter_tree_items()" nowrap single>
<dtml-var "pres_docs_get_url( getId(),hasChildNodes(),
_['tree-item-url'], _['tree-item-expanded'])">
</dtml-tree>
</dtml-let>
If I do this and click on test: it kind of hangs ie my browser just
keeps churning but never renders the page.
My original tree method:
<dtml-let root="pres_docs_storage">
<dtml-tree name=root branches=objectValues nowrap single>
<dtml-var "pres_docs_get_url( getId(),hasChildNodes(),
_['tree-item-url'], _['tree-item-expanded'])">
</dtml-tree>
</dtml-let>
This on the other hand works perfectly.
What could be going wrong between the function call and the rendering??
TIA
AM
Dieter Maurer wrote:
>AM writes:
> > If I dont want an entry for a folder to appear in a tree how can I skip it??
>You look in the documentation for "branches_expr"...
>
>
>Dieter
>
>.
>
--
==================================================================
Aseem Mohanty
Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706
(R) 510 7696011 (M) 510 3014871 (O) 510 5279231
==================================================================
"I saw `cout' being shifted "Hello world" times to the left and
stopped right there!!" -- Steve Gonedes
==================================================================