Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 697:210e1ae39ab1
All database files are now created group readable and writable.
| author | Roche Compaan <rochecompaan@users.sourceforge.net> |
|---|---|
| date | Wed, 24 Apr 2002 10:38:26 +0000 |
| parents | 509a101305da |
| children | fed4c363a7f3 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Wed Apr 24 08:34:35 2002 +0000 +++ b/roundup/backends/back_anydbm.py Wed Apr 24 10:38:26 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.32 2002-04-15 23:25:15 richard Exp $ +#$Id: back_anydbm.py,v 1.33 2002-04-24 10:38:26 rochecompaan Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -61,6 +61,8 @@ self.dirtynodes = {} # keep track of the dirty nodes by class self.newnodes = {} # keep track of the new nodes by class self.transactions = [] + # ensure files are group readable and writable + os.umask(0002) def __repr__(self): return '<back_anydbm instance at %x>'%id(self) @@ -469,6 +471,12 @@ # #$Log: not supported by cvs2svn $ +#Revision 1.32 2002/04/15 23:25:15 richard +#. node ids are now generated from a lockable store - no more race conditions +# +#We're using the portalocker code by Jonathan Feinberg that was contributed +#to the ASPN Python cookbook. This gives us locking across Unix and Windows. +# #Revision 1.31 2002/04/03 05:54:31 richard #Fixed serialisation problem by moving the serialisation step out of the #hyperdb.Class (get, set) into the hyperdb.Database.
