[Zope] Tree tags using LocalFS objects

Eric Shuman eshuman@outrider.com
Thu, 27 Apr 2000 13:25:18 -0700


Thanks for the tip on the LocaFS product.  Definitely a very cool addition!

Here is my current floundering.  I am trying to get a tree of a LocalFS 
object "folder", but I seem to be getting odd behavior from the tree that 
gets displayed.  (Branches won't open, or open sporadically, and when they 
do open it is just a repeat of the original tree. Also they don't always 
open under the branch that was clicked on but in other locations.)  Here is 
the code:

<dtml-tree name=folder branches_expr=fileValues()>
  <dtml-if "meta_type=='Folder'">
   <IMG SRC="<dtml-var icon>" BORDER=0>
   <b><dtml-var id></B>
  <dtml-else>
   <IMG SRC="<dtml-var icon>" BORDER=0>
   <A HREF="<dtml-var tree-item-url>"><dtml-var id></A>
  </dtml-if>
</dtml-tree>

If I call a Zope object and use objectValues() for my branch expression 
everything works fine.  It seems that the id's are not getting set 
correctly and that "meta_type" is not a valid object property for LocalFS 
objects.  I am not very familiar with the LocalFS objects.  What am I 
missing?


Thanks for your help,


Eric Shuman