Hi,
 
Its possible to work with the tree tag and an External Method?
What I'm trying to do is with the External Method, go get some objects that are in the filesystem, and with the tree I will display the tree of that objects.
 
But if I use this code:
 
    <dtml-in obj_fs>
        <dtml-tree branches_expr="objectValues(['Folder', 'External Method'])" assume_children=1>
            <dtml-var sequence-item>
        </dtml-tree>
    </dtml-in>
 
It will display the objects, but will repeat which on three times. Why?
 
If I use:
 
    <dtml-tree branches_expr="objectValues(['Folder','External Method'])" assume_children=1>
        <dtml-in obj_fs>
            <dtml-var sequence-item>
        </dtml-in>
    </dtml-tree>
 
If will display the objects, but which one will be repeasted six times!!! Why?
 
The code that I have in obj_fs is:
    def obj_fs(self):
        import os
        lst=os.listdir("/var/spool/news/articles/")
        return lst
 
Can anyone explain me why is this doing that? Why isn't this working?
 
Another question.
 
    I need to go get the subobjects that are in the objects that I referred before. I think that I will not be able to do this just with the tree tag, but if that is possible, how can I do that?
 
    The result must be something like the Windows Explorer, when I click on the plus sign, it will display the subfolders of the object that I clicked.
 
Can anyone help me with this? Its urgent!!!
 
Please send your answers to psilva@ruido-visual.pt
 
Thanks,
 
Pedro