[Zope] Traversing LocalFS
tracey.monroe@philips.com
tracey.monroe@philips.com
Thu, 24 Apr 2003 16:24:24 -0400
This is a multipart message in MIME format.
--=_alternative 006F7E0E85256D12_=
Content-Type: text/plain; charset="us-ascii"
Hopefully someone can help me out on this ....
Premise: Create a method of displaying files (in browser with URL linking)
from a Local File System in Zope that can
be traversed.
I have already installed the LocalFS product and it seems to work fine, as
least for
the first level of file/folders. But I need to be able to traverse down
an infinite (well a lot)
number of directories so that users can select a specific file. Like I
said the first level is
easy since I am in the "Zope Environment", but I can not figure out how to
keep traversing the path (URL Link) once I have moved out of the Zope
system and into the
LocalFS. I have been unable to add a DTML file in the LocalFS to load the
next level, or at least I can't figure out how.
--------------------------------------------------------
<dtml-var standard_html_header>
<dtml-in "Files.fileIds()">
<a href="&dtml-absolute_url;/Files/<dtml-var
sequence-item>"><dtml-var sequence-item></a><br>
</dtml-in>
<dtml-var standard_html_footer>
-------------------------------------------------------
ROOT
. . - index_html (dtml method)
. . - Files (LocalFS Link)
. . . . - 2001_Information (Folder in LocalFS)
. . . . . . - file1
. . . . . . - file2
. . . . - 2002_Information (Folder in LocalFS)
. . . . - etc.
I am trying to build a traversable webpage with a URL links to file1 and
file2 dynamically using the LocalFS and starting from Zope.
I have also tried the dtml-tree object (which does traverse the entire
paths) but it is
too slow in building the pages.
Given time I think I could figure out something and make it work, but I
need to get this
working in a hurry to help justify using Zope, and this is my last
roadblock.
Any and all help would be greatly appreciated.
Win 2000 system running ZOPE 2.6.1
LocalFS 1-0-0
mounting a shared nt filesystem
Sorry if this is old stuff. I am fairly new to Zope.
Thanks
Tracey Monroe
--=_alternative 006F7E0E85256D12_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">Hopefully someone can help me out on this ....</font>
<br>
<br><font size=2 face="sans-serif">Premise: Create a method of displaying files (in browser with URL linking) from a Local File System in Zope that can</font>
<br><font size=2 face="sans-serif">be traversed.</font>
<br>
<br><font size=2 face="sans-serif">I have already installed the LocalFS product and it seems to work fine, as least for</font>
<br><font size=2 face="sans-serif">the first level of file/folders. But I need to be able to traverse down an infinite (well a lot)</font>
<br><font size=2 face="sans-serif">number of directories so that users can select a specific file. Like I said the first level is</font>
<br><font size=2 face="sans-serif">easy since I am in the "Zope Environment", but I can not figure out how to </font>
<br><font size=2 face="sans-serif">keep traversing the path (URL Link) once I have moved out of the Zope system and into the </font>
<br><font size=2 face="sans-serif">LocalFS. I have been unable to add a DTML file in the LocalFS to load the next level, or at least I can't figure out how.</font>
<br>
<br><font size=2 face="sans-serif">--------------------------------------------------------</font>
<br><font size=2 face="sans-serif"><dtml-var standard_html_header></font>
<br><font size=2 face="sans-serif"> <dtml-in "Files.fileIds()"></font>
<br><font size=2 face="sans-serif"> <a href="&dtml-absolute_url;/Files/<dtml-var sequence-item>"><dtml-var sequence-item></a><br></font>
<br><font size=2 face="sans-serif"> </dtml-in></font>
<br><font size=2 face="sans-serif"><dtml-var standard_html_footer></font>
<br><font size=2 face="sans-serif">-------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">ROOT</font>
<br><font size=2 face="sans-serif">. . - index_html (dtml method)</font>
<br><font size=2 face="sans-serif">. . - Files (LocalFS Link)</font>
<br><font size=2 face="sans-serif">. . . . - 2001_Information (Folder in LocalFS)</font>
<br><font size=2 face="sans-serif">. . . . . . - file1</font>
<br><font size=2 face="sans-serif">. . . . . . - file2</font>
<br><font size=2 face="sans-serif">. . . . - 2002_Information (Folder in LocalFS)</font>
<br><font size=2 face="sans-serif">. . . . - etc.</font>
<br>
<br><font size=2 face="sans-serif">I am trying to build a traversable webpage with a URL links to file1 and file2 dynamically using the LocalFS and starting from Zope.</font>
<br>
<br><font size=2 face="sans-serif">I have also tried the dtml-tree object (which does traverse the entire paths) but it is </font>
<br><font size=2 face="sans-serif">too slow in building the pages.</font>
<br>
<br><font size=2 face="sans-serif">Given time I think I could figure out something and make it work, but I need to get this</font>
<br><font size=2 face="sans-serif">working in a hurry to help justify using Zope, and this is my last roadblock. </font>
<br>
<br><font size=2 face="sans-serif">Any and all help would be greatly appreciated.</font>
<br>
<br><font size=2 face="sans-serif">Win 2000 system running ZOPE 2.6.1</font>
<br><font size=2 face="sans-serif">LocalFS 1-0-0</font>
<br><font size=2 face="sans-serif">mounting a shared nt filesystem</font>
<br>
<br>
<br><font size=2 face="sans-serif">Sorry if this is old stuff. I am fairly new to Zope.</font>
<br>
<br><font size=2 face="sans-serif">Thanks<br>
Tracey Monroe</font>
--=_alternative 006F7E0E85256D12_=--