[Zope] Re: permissions problem writing file from External Method?

Tres Seaver tseaver at zope.com
Wed Oct 27 21:52:14 EDT 2004


Bill Seitz wrote:
> My Zope v2.6.2 ExternalMethod is giving me an error when I try to open a 
> file for writing.
> 
> Error:
> Module /home/zope/Zope/Extensions/notifyAdt.py, line 88, in seqPut
> IOError: [Errno 13] Permission denied: '/home/lii/logs/notifyAdtSeq.txt'
> 
> That line of code:
> sf = open(path+seqFile,'w')
> 
> (Since this code is also run outside Zope I just use a little file to 
> hold a single value that I want to persist over time - it gets 
> incremented each time.)
> 
> 
> 
> I think I've made the file as available as possible.
> -rwxrwxrwx    1 lii      lii             1 Oct 27 13:39 notifyAdtSeq.txt

I'm guessing that the user as whom Zope is running needs to have write 
access to the directory where the 'open' takes place (but that is just a 
guess).

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com



More information about the Zope mailing list