From 173ae91f8a8795d6f264b4d614ad9363a5e2eb65 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 26 Aug 2007 04:18:19 +0000 Subject: [PATCH] * src/Config/_GrampsIniKeys.py (get): handle "" case svn: r8870 --- ChangeLog | 1 + src/Config/_GrampsIniKeys.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ae965aca6..e9162511b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2007-08-25 Don Allingham + * src/Config/_GrampsIniKeys.py (get): handle "" case * src/GrampsDb/__init__.py: Add DbBase * src/GrampsDb/_DbBase.py: Abstract base class for template * src/GrampsDb/Makefile.am: Add _DbBase.py diff --git a/src/Config/_GrampsIniKeys.py b/src/Config/_GrampsIniKeys.py index d2b971b76..237175755 100644 --- a/src/Config/_GrampsIniKeys.py +++ b/src/Config/_GrampsIniKeys.py @@ -210,7 +210,7 @@ def get(key): val = get_int(key) else: val = get_string(key) - if val == None: + if val == None or val == "": val = default_value[key] return val