importing text files
I have a file object (a text file) in my project that is displayed in a dtml document. Is there a way to make that object dynamic, i.e. when a user changes the file (in notepad, or something) and saves it, those changes are reflected next time the dtml document is loaded. When I started the project I was operating under the assumption that a file object was a link to the object, not a static snapshot of it - silly me. Thanks, Joel Grimes ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
I have a file object (a text file) in my project that is displayed in a dtml document. Is there a way to make that object dynamic, i.e. when a user changes the file (in notepad, or something) and saves it, those changes are reflected next time the dtml document is loaded.
When I started the project I was operating under the assumption that a file object was a link to the object, not a static snapshot of it - silly me.
You can try the LocalFS product. This product reads a file from the file system and constructs a Zope object from it each time the object is requested. http://www.zope.org/Members/jfarr/Products/LocalFS/ --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998
participants (2)
-
joel grimes -
Jonothan Farr