comparison roundup/backends/back_sqlite.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 9020fe58c51c
children f5201bbbc505
comparison
equal deleted inserted replaced
3608:19c0ee158c29 3609:f2fda3e6fc8b
1 # $Id: back_sqlite.py,v 1.43 2005-06-08 03:41:21 anthonybaxter Exp $ 1 # $Id: back_sqlite.py,v 1.44 2006-04-27 04:59:37 richard Exp $
2 '''Implements a backend for SQLite. 2 '''Implements a backend for SQLite.
3 3
4 See https://pysqlite.sourceforge.net/ for pysqlite info 4 See https://pysqlite.sourceforge.net/ for pysqlite info
5 5
6 6
92 cursor = conn.cursor() 92 cursor = conn.cursor()
93 return (conn, cursor) 93 return (conn, cursor)
94 94
95 def open_connection(self): 95 def open_connection(self):
96 # ensure files are group readable and writable 96 # ensure files are group readable and writable
97 os.umask(0002) 97 os.umask(self.config.UMASK)
98 98
99 (self.conn, self.cursor) = self.sql_open_connection() 99 (self.conn, self.cursor) = self.sql_open_connection()
100 100
101 try: 101 try:
102 self.load_dbschema() 102 self.load_dbschema()

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