[Zope] Creating files on server

Chris Withers chrisw@nipltd.com
Tue, 24 Apr 2001 12:31:08 +0100


Gitte Wange wrote:
> 
> 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 ?

On the filesystem? LocalFS might be right, read the documentation for it (it can
eb a bit tricky to find the useful bits from what I remember ;-)

Failing that, use an external method:

def write_stuff(self,path,stuff):
   f = open(path,'w')
   f.write(stuff)
   f.close()

cheers,

Chris