Skip to content

Commit 5b835f5

Browse files
author
Richard Jones
committed
default value for GADFLY_DATABASE
1 parent c137c5a commit 5b835f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/backends/back_gadfly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_gadfly.py,v 1.15 2002-09-10 00:11:50 richard Exp $
1+
# $Id: back_gadfly.py,v 1.16 2002-09-11 01:20:09 richard Exp $
22
__doc__ = '''
33
About Gadfly
44
============
@@ -82,7 +82,7 @@ def __init__(self, config, journaltag=None):
8282
# additional transaction support for external files and the like
8383
self.transactions = []
8484

85-
db = config.GADFLY_DATABASE
85+
db = getattr(config, 'GADFLY_DATABASE', ('database', self.dir))
8686
if len(db) == 2:
8787
# ensure files are group readable and writable
8888
os.umask(0002)

0 commit comments

Comments
 (0)