From df11430fc2dc58e821ad20b6aadee433db387398 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 26 Jan 2006 19:47:42 +0000 Subject: [PATCH] * src/GenericFilters.py (get_filters): Use default value of 'generic' for the namespace argument. svn: r5836 --- gramps2/ChangeLog | 2 ++ gramps2/src/GenericFilter.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 76e6ce1cf..c571ea320 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,8 @@ 2006-01-25 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py: Add proper upgrade path from within load. + * src/GenericFilters.py (get_filters): Use default value of + 'generic' for the namespace argument. 2006-01-25 Don Allingham * src/DisplayTabs.py: use idle_loop to load data for source diff --git a/gramps2/src/GenericFilter.py b/gramps2/src/GenericFilter.py index af7b477a0..b99eb41f5 100644 --- a/gramps2/src/GenericFilter.py +++ b/gramps2/src/GenericFilter.py @@ -2291,7 +2291,7 @@ class GenericFilterList: self.filter_list = {} self.file = os.path.expanduser(file) - def get_filters(self,namespace): + def get_filters(self,namespace='generic'): try: return self.filter_list[namespace] except KeyError: