diff roundup/backends/back_anydbm.py @ 3609:f2fda3e6fc8b

umask is now configurable (with the same 0002 default)
author Richard Jones <richard@users.sourceforge.net>
date Thu, 27 Apr 2006 04:59:37 +0000
parents 7b25567f0f54
children 57c66056ffe4
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Thu Apr 27 04:14:48 2006 +0000
+++ b/roundup/backends/back_anydbm.py	Thu Apr 27 04:59:37 2006 +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.198 2006-04-27 01:39:47 richard Exp $
+#$Id: back_anydbm.py,v 1.199 2006-04-27 04:59:37 richard 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
 versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -96,8 +96,7 @@
         self.transactions = []
         self.indexer = Indexer(self)
         self.security = security.Security(self)
-        # ensure files are group readable and writable
-        os.umask(0002)
+        os.umask(config.UMASK)
 
         # lock it
         lockfilenm = os.path.join(self.dir, 'lock')

Roundup Issue Tracker: http://roundup-tracker.org/