From 969bc43555322fd2d0b8263004ff9b08c6130df0 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 --- ChangeLog | 2 ++ src/Config/_GrampsIniKeys.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad1a412c2..c2512090e 100644 --- a/ChangeLog +++ b/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/src/Config/_GrampsIniKeys.py b/src/Config/_GrampsIniKeys.py index 1557b90c7..c25b417c5 100644 --- a/src/Config/_GrampsIniKeys.py +++ b/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]