* src/Config/_GrampsIniKeys.py (get): handle "" case
svn: r8870
This commit is contained in:
parent
04884cd19c
commit
173ae91f8a
@ -1,4 +1,5 @@
|
|||||||
2007-08-25 Don Allingham <don@gramps-project.org>
|
2007-08-25 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Config/_GrampsIniKeys.py (get): handle "" case
|
||||||
* src/GrampsDb/__init__.py: Add DbBase
|
* src/GrampsDb/__init__.py: Add DbBase
|
||||||
* src/GrampsDb/_DbBase.py: Abstract base class for template
|
* src/GrampsDb/_DbBase.py: Abstract base class for template
|
||||||
* src/GrampsDb/Makefile.am: Add _DbBase.py
|
* src/GrampsDb/Makefile.am: Add _DbBase.py
|
||||||
|
@ -210,7 +210,7 @@ def get(key):
|
|||||||
val = get_int(key)
|
val = get_int(key)
|
||||||
else:
|
else:
|
||||||
val = get_string(key)
|
val = get_string(key)
|
||||||
if val == None:
|
if val == None or val == "":
|
||||||
val = default_value[key]
|
val = default_value[key]
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user