From 56f4ebaa4ef4d6a969f56eafffd4ea7234024c5d Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Tue, 15 Jan 2008 18:36:28 +0000 Subject: [PATCH] 2008-01-15 Raphael Ackermann * src/FilterEditor/_ShowResults.py: allow notes to be filtered 0001607: Unreferenced filter test svn: r9824 --- ChangeLog | 4 ++++ src/FilterEditor/_ShowResults.py | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a46a8cb4e..adde4db45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-15 Raphael Ackermann + * src/FilterEditor/_ShowResults.py: allow notes to be filtered + 0001607: Unreferenced filter test + 2008-01-15 Douglas S. Blank * src/plugins/ImportCSV.py (CSVParser.process): fixed csv import with no surname (bug #1603) diff --git a/src/FilterEditor/_ShowResults.py b/src/FilterEditor/_ShowResults.py index 341c0e85d..ed223505d 100644 --- a/src/FilterEditor/_ShowResults.py +++ b/src/FilterEditor/_ShowResults.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000-2007 Donald N. Allingham +# Copyright (C) 2000-2008 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 @@ -131,6 +131,10 @@ class ShowResults(ManagedWindow.ManagedWindow): repo = self.db.get_repository_from_handle(handle) name = repo.get_name() gid = repo.get_gramps_id() + elif self.space == 'Note': + note = self.db.get_note_from_handle(handle) + name = note.get() + gid = note.get_gramps_id() return (name,gid) def sort_val_from_handle(self, handle): @@ -156,4 +160,7 @@ class ShowResults(ManagedWindow.ManagedWindow): elif self.space == 'Repository': name = self.db.get_repository_from_handle(handle).get_name() sortname = locale.strxfrm(name) + elif self.space == 'Note': + name = self.db.get_note_from_handle(handle).get() + sortname = locale.strxfrm(name) return (sortname,handle)