Serving file from the local file system
Greeting: I am interested in serving files (such as index_dtml) from the local filesystem so that I can export that file system with nfs and allow multiple people to work with the file ect. I have tried two products LocalFS-0.10.1, and FSFolder-0-1-2. Neither product seems to do exactly what I want. One of my concerns is that I don't want to have to restart the server for the changes to take effect,the other is that I would rather not have to 'import' the files either after they have been changed. I was wondering if anybody had some suggestions in regard to this. thanks very much -matthew
Matthew Thorley wrote:
I am interested in serving files (such as index_dtml) from the local filesystem so that I can export that file system with nfs and allow multiple people to work with the file ect. I have tried two products LocalFS-0.10.1, and FSFolder-0-1-2. Neither product seems to do exactly what I want.
Look also at http://zope.org/Members/philikon/FileSystemSite http://zope.org/Members/arielpartners/ExternalFile I'm not certain how these deal with changes to the file that don't involve Zope. I think ExternalFile should behave as you want, and maybe FSS (it may require a refresh, though--you'll have to check.) LocalFS should also behave as you expect, but I don't know if it handles templates: I've only used it for content. --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
J Cameron Cooper wrote at 2003-12-2 14:24 -0600:
I am interested in serving files (such as index_dtml) from the local filesystem so that I can export that file system with nfs and allow multiple people to work with the file ect. I have tried two products LocalFS-0.10.1, and FSFolder-0-1-2. Neither product seems to do exactly what I want.
Look also at
http://zope.org/Members/philikon/FileSystemSite http://zope.org/Members/arielpartners/ExternalFile
I'm not certain how these deal with changes to the file that don't involve Zope.
When I understand "FileSystemSite" correct, it is based on "CMFCore"s "FSObject". Such objects detect changes immediately provided Zope is running in development mode ("-D" start option). By the way, my "SkinnedFolder" may be of interest, too. It will not solve the primary issue (templates and scripts in the file system) but may facilitate access to them. <http://www.dieter.handshake.de/pyprojects/zope> -- Dieter
Hello Matthew, maybe you want to take a closer look at the ExternalEditor product. You are probably aware of the problems that can arise if several people change the same file at the same time?! WebDAV is one of the possible solutions. Otherwise, the CVS storage might be another alternative. Ulrich -- World Wide Web Publisher, Ulrich Wisser, Vallatorpsv.158, S-18752 Täby http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
On Tuesday 02 December 2003 02:06 pm, Matthew Thorley wrote:
I am interested in serving files (such as index_dtml) from the local filesystem so that I can export that file system with nfs and allow multiple people to work with the file ect.
If by this, you mean that you want Zope to treat the file as DTML code and process it in context (not merely punching a hole through Zope to a static file on the filesystem as LocalFS does), then you might be interested to know that this is essentially the behavior of DTMLFile(). If you define a DTMLFile object from protected Python code (product or external method): from globals import DTMLFile my_dtmlfile_method = DTMLFile('dtml/my_dtmlfile_method', globals()) The content will be retrieved from the original file on every request, so updates to the source will apply immediately.
I have tried two products LocalFS-0.10.1, and FSFolder-0-1-2. Neither product seems to do exactly what I want. One of my concerns is that I don't want to have to restart the server for the changes to take effect,the other is that I would rather not have to 'import' the files either after they have been changed. I was wondering if anybody had some suggestions in regard to this.
DTMLFile() object should fit the bill on that. The only downside is the need to define them from product or external method code (but once defined, they can be edited as you want). Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
participants (5)
-
Dieter Maurer -
J Cameron Cooper -
Matthew Thorley -
Terry Hancock -
Ulrich Wisser