From 6bad6079724fc6c4ce5eef99a6dd4ce5461c6cd2 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 13 May 2006 05:54:07 +0000 Subject: [PATCH] * src/Config/_GrampsIniKeys.py (get_default): Add optional arg indicating type. svn: r6644 --- gramps2/ChangeLog | 2 ++ gramps2/src/Config/_GrampsIniKeys.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ad1a412c2..c2512090e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -12,6 +12,8 @@ * src/Config/_GrampsGconfKeys.py (get_default): Allow other types. * src/GrampsCfg.py (reset_colors): Emit color-set signal to trigget hex text updates. + * src/Config/_GrampsIniKeys.py (get_default): Add optional arg + indicating type. 2006-05-12 Don Allingham * src/ViewManager.py: move ScratchPad to Edit diff --git a/gramps2/src/Config/_GrampsIniKeys.py b/gramps2/src/Config/_GrampsIniKeys.py index 1557b90c7..c25b417c5 100644 --- a/gramps2/src/Config/_GrampsIniKeys.py +++ b/gramps2/src/Config/_GrampsIniKeys.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2005 Donald N. Allingham +# Copyright (C) 2005-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -245,5 +245,5 @@ def set_string(key, val, test_func=None): def sync(): client.suggest_sync() -def get_default(key): +def get_default(key,sample=''): return default_value[key]