* src/PeopleModel.py: sort based of "group as" value

* src/GrampsInMem.py: used "group as" value for surname list
* src/GrampsBSDDB.py: used "group as" value for surname list
* src/GrampsDbBase.py: accept "" and None for empty id values


svn: r3584
This commit is contained in:
Don Allingham
2004-09-29 03:19:01 +00:00
parent b79615e888
commit 6a6677e240
8 changed files with 92 additions and 32 deletions

View File

@ -97,7 +97,7 @@ class PeopleModel(gtk.GenericTreeModel):
for person_handle in self.db.get_person_handles(sort_handles=False):
person = self.db.get_person_from_handle(person_handle)
surname = unicode(person.get_primary_name().get_surname())
surname = unicode(person.get_primary_name().get_group_as())
if self.sname_sub.has_key(surname):
self.sname_sub[surname].append(person_handle)