[Zope] Zope app to traverse *external* file system

Kulp, David David_Kulp@affymetrix.com
Wed, 21 Mar 2001 13:50:20 -0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0B250.ECDC9220
Content-Type: text/plain;
	charset="iso-8859-1"

I am trying to decide whether I should take the plunge with Zope.
I will be writing a web app to traverse a large directory tree and
provide fews of the files in this tree.  This sounds, at first, ideal
for zope, since I could create scripts or DHTML methods at the
top of the tree that I can use to generally and systemically 
allow users to traverse and view the information -- perhaps 
even using the zope tree view.
 
Alas, this directory tree is external to zope in a real file system.
It is not possible to add these files as objects into zope.
Everything I've read so far deals with objects in zope.  Is there a
straightforward way to use zope to address this while maintaining
most of the nice zope features?
 
Although not the app I'm actually writing, the idea is similar to,
for example, providing a view of a /home file system.  Special
behavior for the default view might exist for /home/<user>/.
Perhaps a directory of /home/<user>/src would be recognized
as a source code tree for a particular user and special behavior
within that tree would exist -- e.g. comparing a file with a CVS
repository. Different files with extensions or mime-types or special 
names are displayed differently.  This sounds a lot like a classic
zope app to me except the data isn't in zope.  The files are live
real files in the file system and are accessed, modified, etc.
outside of the web app.
 
Any recommendation would be much appreciated!  Is there a nice
zope pattern for this?  If not, can you recommend alternatives?
 
Much obliged,
David Kulp
 

------_=_NextPart_001_01C0B250.ECDC9220
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2919.6307" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>I am trying to 
decide whether I should take the plunge with Zope.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>I will be writing a 
web app to traverse a large directory tree and</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>provide fews of the 
files in this tree.&nbsp; This sounds, at first, ideal</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>for zope, since I 
could create scripts or DHTML methods at the</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>top of the tree that 
I can use to generally and systemically </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>allow users to 
traverse</SPAN></FONT><FONT face=Arial size=2><SPAN class=967323721-21032001> 
and view the information -- perhaps </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>even using the zope 
tree view.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Alas, this directory 
tree is external to zope in a real file system.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>It is not possible 
to add these files as objects into zope.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Everything I've read 
so far deals with objects in zope.&nbsp; Is there a</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>straightforward way 
to use zope to address this while maintaining</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>most of the nice 
zope features?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Although not the app 
I'm actually writing, the idea is similar to,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>for example, 
providing a view of a /home file system.&nbsp; Special</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>behavior for the 
default view might exist for /home/&lt;user&gt;/.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Perhaps a directory 
of /home/&lt;user&gt;/src would be recognized</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>as a source code 
tree for a particular user and special behavior</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>within that tree 
would exist -- e.g. comparing a file with a CVS</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001>repository.</SPAN></FONT><FONT face=Arial size=2><SPAN 
class=967323721-21032001> Different files with extensions or mime-types or 
special </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001>names</SPAN></FONT><FONT face=Arial size=2><SPAN 
class=967323721-21032001> are displayed differently.&nbsp; This sounds&nbsp;a 
lot like a classic</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>zope app to me 
except the data isn't in zope.&nbsp; The files are live</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>real files in the 
file system and are accessed, modified, etc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>outside of the web 
app.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Any recommendation 
would be much appreciated!&nbsp; Is there a nice</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>zope pattern for 
this?&nbsp; If not, can you recommend alternatives?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>Much 
obliged,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=967323721-21032001>David 
Kulp</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=967323721-21032001></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C0B250.ECDC9220--