[Zope] Creating files on server
Thomas B. Passin
tpassin@mitretek.org
Tue, 24 Apr 2001 10:34:47 -0400
Gitte Wange asked -
>
> Okay maybe I didn't express myself very clear.
> Can anyone tell me how I - in somw way - create a file on the server
> through Zope ?
>
I use an external method. You can get a python module to disclose its
absolute path, so you can locate your files relative to the script. (Of
course, you could use a hard-coded absolute path, but that's not so
desirable except for testing). The idea is that the script in the
Extensions directory that is hooked to the external method should not do
anything else but call the script you really want to run, which is located
in some convenient place. Of course, you have to get that script into your
pythonpath, using one of the ways that has been discussed on the list in the
last few days.
Cheers,
Tom P