comparison roundup/backends/rdbms_common.py @ 3897:e2c2d91932ad

respect umask on filestorage backend (fixes [SF#744328]) patch from Ulrik Mikaelsson also: some trailing whitespace got removed
author Justus Pendleton <jpend@users.sourceforge.net>
date Tue, 11 Sep 2007 21:33:30 +0000
parents 34128a809e22
children 666b70676ec6
comparison
equal deleted inserted replaced
3896:fca0365521fc 3897:e2c2d91932ad
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 #$Id: rdbms_common.py,v 1.188 2007-08-31 15:44:02 jpend Exp $ 18 #$Id: rdbms_common.py,v 1.189 2007-09-11 21:33:30 jpend Exp $
19 """ Relational database (SQL) backend common code. 19 """ Relational database (SQL) backend common code.
20 20
21 Basics: 21 Basics:
22 22
23 - map roundup classes to relational tables 23 - map roundup classes to relational tables
104 - we keep a cache of the latest ROW_CACHE_SIZE row fetches. 104 - we keep a cache of the latest ROW_CACHE_SIZE row fetches.
105 """ 105 """
106 def __init__(self, config, journaltag=None): 106 def __init__(self, config, journaltag=None):
107 """ Open the database and load the schema from it. 107 """ Open the database and load the schema from it.
108 """ 108 """
109 FileStorage.__init__(self, config.UMASK)
109 self.config, self.journaltag = config, journaltag 110 self.config, self.journaltag = config, journaltag
110 self.dir = config.DATABASE 111 self.dir = config.DATABASE
111 self.classes = {} 112 self.classes = {}
112 self.indexer = Indexer(self) 113 self.indexer = Indexer(self)
113 self.security = security.Security(self) 114 self.security = security.Security(self)

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