I'm new to Zope. I need access to a text file external to Zope to extract some input information for my Zope database. I installed the LocalFs.1-0-0 product. As soon as I added a LocalFS object, my folder became unaccesible. I could access it after I removed LocalFS product. Can you advice me how to read an external text file with or without LocalFS? I work with Zope 2.7.0. Thank you. Elena.
elena@hpcf.upr.edu wrote:
I'm new to Zope. I need access to a text file external to Zope to extract some input information for my Zope database. I installed the LocalFs.1-0-0 product. As soon as I added a LocalFS object, my folder became unaccesible. I could access it after I removed LocalFS product. Can you advice me how to read an external text file with or without LocalFS?
I don't know in which way you need to read the external file, but an external method can do it just as easily as you would do it in Python itself: def read_external_file(self): f = open('path_to_file', 'rb') content = f.read() f.close() return content
elena@hpcf.upr.edu wrote:
I'm new to Zope. I need access to a text file external to Zope to extract some input information for my Zope database. I installed the LocalFs.1-0-0 product. As soon as I added a LocalFS object, my folder became unaccesible. I could access it after I removed LocalFS product. Can you advice me how to read an external text file with or without LocalFS? I work with Zope 2.7.0.
With external methods you can do it programmatically. You could try to fix LocalFS. Turn on logging and/or run Zope from the console to see what's happening, if it is, as I suspect, a startup problem. There is also External File, and probably others. --jcc -- "He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you."
elena@hpcf.upr.edu wrote at 2004-2-27 12:22 -0400:
I'm new to Zope. I need access to a text file external to Zope to extract some input information for my Zope database. I installed the LocalFs.1-0-0 product. As soon as I added a LocalFS object, my folder became unaccesible. I could access it after I removed LocalFS product. Can you advice me how to read an external text file with or without LocalFS? I work with Zope 2.7.0.
"LocalFS" broke with Zope 2.7. There are several versions around that work with Zope 2.7. One is called "LocalFS_andreas" (or similar). Use Google (or your favorite search engine) to locate it. -- Dieter
Dieter Maurer wrote:
"LocalFS" broke with Zope 2.7.
There are several versions around that work with Zope 2.7. One is called "LocalFS_andreas" (or similar). Use Google (or your favorite search engine) to locate it.
localFS 1.1 should work with Zope 2.7. The tarball is available at the Sourceforge project site, but buried a bit: http://prdownloads.sourceforge.net/localfs/ /Anton
participants (5)
-
Anton Stonor -
Dieter Maurer -
elena@hpcf.upr.edu -
J Cameron Cooper -
Max M