2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/FilterEditor/_ShowResults.py: allow notes to be filtered 0001607: Unreferenced filter test svn: r9824
This commit is contained in:
parent
d1bc327764
commit
56f4ebaa4e
@ -1,3 +1,7 @@
|
||||
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||
* src/FilterEditor/_ShowResults.py: allow notes to be filtered
|
||||
0001607: Unreferenced filter test
|
||||
|
||||
2008-01-15 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||
* src/plugins/ImportCSV.py (CSVParser.process): fixed csv import with no
|
||||
surname (bug #1603)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user