* src/GenericFilters.py (get_filters): Use default value of

'generic' for the namespace argument.


svn: r5836
This commit is contained in:
Alex Roitman 2006-01-26 19:47:42 +00:00
parent 407ba8886e
commit a2bf6799cb
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
2006-01-25 Alex Roitman <shura@gramps-project.org> 2006-01-25 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: Add proper upgrade path from * src/GrampsDb/_GrampsBSDDB.py: Add proper upgrade path from
within load. within load.
* src/GenericFilters.py (get_filters): Use default value of
'generic' for the namespace argument.
2006-01-25 Don Allingham <don@gramps-project.org> 2006-01-25 Don Allingham <don@gramps-project.org>
* src/DisplayTabs.py: use idle_loop to load data for source * src/DisplayTabs.py: use idle_loop to load data for source

View File

@ -2291,7 +2291,7 @@ class GenericFilterList:
self.filter_list = {} self.filter_list = {}
self.file = os.path.expanduser(file) self.file = os.path.expanduser(file)
def get_filters(self,namespace): def get_filters(self,namespace='generic'):
try: try:
return self.filter_list[namespace] return self.filter_list[namespace]
except KeyError: except KeyError: