dumbdbm

Brett Irving balgorg at hotmail.com
Tue May 20 08:04:53 EDT 2003


I have a problem with trying to add to a database, I wish to separate
my files from each other with the database files stored in one
directory and all my cgi files in another, however whenever I try to
do this, it keeps appearing with this error. The page works fine when
I stick all the files in one directory.

   AddUser(username,data)
  File "/usr/cs3/bjirving/lib/html/uidp/gregarious/cgi/adduser.cgi",
line 41, in AddUser
    users_db = dumbdbm.open('../dbase/mydumbdbm')
  File "/usr/local/lib/python2.2/dumbdbm.py", line 170, in open
    return _Database(file, mode)
  File "/usr/local/lib/python2.2/dumbdbm.py", line 44, in __init__
    f = _open(self._datfile, 'w', self._mode)
IOError: [Errno 13] Permission denied: '../dbase/mydumbdbm.dat'
Exception exceptions.AttributeError: "_Database instance has no
attribute '_index'" in <bound method _Database.__del__ of
<dumbdbm._Database instance at 0x166e88>> ignored




More information about the Python-list mailing list