Adding zope object-references to content on file system?
Hello everyone - I'm a zope newbie, teaching myself python at the same time. I have a batch of docbook files and I generate a couple of hundred HTML files (processed a couple of steps through XSL transformations). It's 400+ pages, so importing/exporting will probably take quite a long time. I thought it would make sense to continue transforming the doc on the local file system and add a link to the file location from the Zope control center. If I import the files, then I will have to remove and re-import the files each time I rebuild the document, which seems excessive... And I would need a command-line interface to do that anyway, because it makes no sense to add each file individually. Is it possible to give zope server knowledge of trees of HTML on the local file system? How do I do that? Or is there a better way? What other approaches are there to integrating large docbook documents inside Zope applications? I suspect it's not a good idea to store the XML source and dynamically generate docbook for each page, but I haven't tried that yet. -- Alan Ezust ottawa, canada
On Sat, May 01, 2004 at 06:21:01PM -0400, Alan Ezust wrote:
Is it possible to give zope server knowledge of trees of HTML on the local file system? How do I do that? Or is there a better way?
There are a couple ways. Filesystem Directory View ships with CMF but can be used independently. It gives a read-only view in Zope. LocalFS gives read-write access. Best version I know of can be found here http://www.easyleading.org/Downloads/ If that gives you access denied (due to Andreas' blocking of several very large ISPs due to spam relaying), you can try the tarball here: http://cvs.easyleading.org/browse/LocalFS/ -- Paul Winkler http://www.slinkp.com
Paul, thanks for the reply... ReadOnly is fine for me at the moment. Although read-write sounds interesting for later. Thanks for the link. Since I'm still quite a zope-newbie, I thought I'd try getting FileSystemDirectory view working first, thinking that I could read about security in more detail as I go through the tutorial. I've created three Filesystem Directory View objects. It lists the possible directories to add, and there is only the choice of the "site" directory underneath the renamed "examplesite". Every time I create one, it is locked. I can see the initial welcome page, but if I can't seem to see .html files or subdirectories in the "site" directory through zope. So these filesystemviews seem to be empty except for one DHTML file, and it doesn't matter what else I copy into those directories, Zope can't see them? Where do tell Zope where my tree of files is located? Or do I create a symbolic link inside the ExampleSite? Where is the documentation that explains how this works? I'd like to delete these old FileSystemView objects I was creating while I was trying to figure out how this worked. Tried to "cut" but I get """ The object does not support this operation. -- OR -- The currently logged-in user does not have the Copy or Move permission respective to the object. """ Is it possible to delete a FileSystemDirectory view? It has no content in it yet, and I see this "lock" symbol on the icon. On May 1, 2004 06:58 pm, Paul Winkler wrote:
On Sat, May 01, 2004 at 06:21:01PM -0400, Alan Ezust wrote:
Is it possible to give zope server knowledge of trees of HTML on the local file system? How do I do that? Or is there a better way?
There are a couple ways. Filesystem Directory View ships with CMF but can be used independently. It gives a read-only view in Zope. LocalFS gives read-write access. Best version I know of can be found here http://www.easyleading.org/Downloads/ If that gives you access denied (due to Andreas' blocking of several very large ISPs due to spam relaying), you can try the tarball here: http://cvs.easyleading.org/browse/LocalFS/
-- Alan Ezust ottawa, canada
participants (3)
-
Alan Ezust -
Alan Ezust -
Paul Winkler