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

* src/DataViews/_PersonView.py: use grouping name
	* src/NameDisplay.py: Add grouping from data instead of just Name
	instance, handle Name.DEF
	* src/DisplayModels/_PeopleModel.py: use grouping name



svn: r7110
This commit is contained in:
Don Allingham
2006-08-01 23:50:47 +00:00
parent c6032a659f
commit e59d065ada
4 changed files with 32 additions and 10 deletions

View File

@@ -404,6 +404,7 @@ class PersonView(PageView.PersonNavView):
try:
if self.model and p:
path = self.model.on_get_path(p.get_handle())
group_name = p.get_primary_name().get_group_name()
top_name = self.dbstate.db.get_name_group_mapping(group_name)
top_path = self.model.on_get_path(top_name)
@@ -651,7 +652,9 @@ class PersonView(PageView.PersonNavView):
return
for node in handle_list:
person = self.dbstate.db.get_person_from_handle(node)
top = person.get_primary_name().get_group_name()
pn = person.get_primary_name()
top = NameDisplay.displayer.name_grouping_name(self.db, pn)
self.model.rebuild_data()
if not self.model.is_visable(node):
continue