2006-08-17 Don Allingham <don@gramps-project.org>

* src/DataViews/_PersonView.py: apply filter to calcuated data before
	deleting a person from the list



svn: r7199
This commit is contained in:
Don Allingham 2006-08-18 04:43:03 +00:00
parent ac405dee06
commit cd6ab43fc0
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-08-17 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py: apply filter to calcuated data before
deleting a person from the list
2006-08-17 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: fix #0000349: NarrativeWebsite sorting

View File

@ -677,12 +677,17 @@ class PersonView(PageView.PersonNavView):
if not self.model:
return
if Config.get(Config.FILTER):
filter_info = (PeopleModel.GENERIC, self.generic_filter)
else:
filter_info = (PeopleModel.SEARCH, self.search_bar.get_value())
self.model.clear_cache()
for node in handle_list:
person = self.dbstate.db.get_person_from_handle(node)
top = person.get_primary_name().get_group_name()
mylist = self.model.sname_sub.get(top,[])
self.model.calculate_data(skip=set(handle_list))
self.model.calculate_data(filter_info[1], skip=set(handle_list))
if mylist:
try:
path = self.model.on_get_path(node)