From 2074bec9ce6b190b9626c0cb97a09e10ee583fb9 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 9 Sep 2004 02:59:48 +0000 Subject: [PATCH] * src/plugins/FilterEditor.py (ShowResults.__init__): Use gramps IDs instead of handles for display. svn: r3530 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/FilterEditor.py | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index fae8453fc..3e67881db 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-09-08 Alex Roitman + * src/plugins/FilterEditor.py (ShowResults.__init__): + Use gramps IDs instead of handles for display. + 2004-09-01 Alex Roitman * src/EditPlace.py (on_web_go_clicked): Typo. diff --git a/gramps2/src/plugins/FilterEditor.py b/gramps2/src/plugins/FilterEditor.py index 999427f2a..937c54368 100644 --- a/gramps2/src/plugins/FilterEditor.py +++ b/gramps2/src/plugins/FilterEditor.py @@ -355,8 +355,8 @@ class FilterEditor: store,iter = self.clist.get_selected() if iter: filt = self.clist.get_object(iter) - id_list = filt.apply(self.db,self.db.get_person_handles(sort_handles=False)) - ShowResults(self,self.db,id_list,filt.get_name()) + handle_list = filt.apply(self.db,self.db.get_person_handles(sort_handles=False)) + ShowResults(self,self.db,handle_list,filt.get_name()) def delete_filter(self,obj): store,iter = self.clist.get_selected() @@ -769,7 +769,7 @@ class EditRule: # #------------------------------------------------------------------------- class ShowResults: - def __init__(self,parent,db,id_list,filtname): + def __init__(self,parent,db,handle_list,filtname): self.parent = parent self.win_key = self self.filtname = filtname @@ -786,9 +786,10 @@ class ShowResults: }) n = [] - for p_id in id_list: - p = db.get_person_from_handle(p_id) - n.append ("%s [%s]\n" % (p.get_primary_name().get_name(),p.get_handle())) + for p_handle in handle_list: + p = db.get_person_from_handle(p_handle) + n.append ("%s [%s]\n" % + (p.get_primary_name().get_name(),p.get_gramps_id())) n.sort () text.get_buffer().set_text(string.join (n, ''))