[Zope] path...

Casey Duncan cduncan@kaivo.com
Thu, 05 Apr 2001 13:58:51 -0600


After Dark wrote:
> 
> I did what you told me, but the method assumed the context
> of the file wich called it.
> Like this:
> 
> myserver/
> myserver/arvore_dtml
> myserver/dir_restrict/calls_dtml
> myserver/dir1/
> myserver/dir2/
> myserver/arq_x
> 
> I`m calling the arvore_dtml(code you sent) from calls_dtml,
> but I want to list files and dirs from myserver. What is
> happening is that it is listing from dir_restrict.
> Did I make something wrong?
> 
> Bye.
> 

That is what the code does. I did not understand that you wanted to fix
the behavior like that. If you always want the directory list to be of
myserver then change the <dtml-in> line to:

<dtml-in expr="myserver.objectValues()">

I am however still confused about what exactly you are trying to do.

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>