From dccb19009dec296790b57fdb5940a126f29e92a5 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 --- ChangeLog | 4 ++++ src/plugins/FilterEditor.py | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index fae8453fc..3e67881db 100644 --- a/ChangeLog +++ b/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/src/plugins/FilterEditor.py b/src/plugins/FilterEditor.py index 999427f2a..937c54368 100644 --- a/src/plugins/FilterEditor.py +++ b/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, ''))