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

* src/DisplayModels/_PeopleModel.py: fix sorting of names



svn: r7155
This commit is contained in:
Don Allingham 2006-08-12 00:14:16 +00:00
parent 58cc43816c
commit 4bdc05a6c8
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-08-11 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_PeopleModel.py: fix sorting of names
2006-08-11 Alex Roitman <shura@gramps-project.org> 2006-08-11 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: Use txn-capable metadata. * src/GrampsDb/_GrampsBSDDB.py: Use txn-capable metadata.
* src/Editors/_EditFamily.py: Use cPickle. * src/Editors/_EditFamily.py: Use cPickle.

View File

@ -207,7 +207,7 @@ class PeopleModel(gtk.GenericTreeModel):
if not (handle in skip or (dfilter and not dfilter.match(handle))): if not (handle in skip or (dfilter and not dfilter.match(handle))):
name_data = d[PeopleModel._NAME_COL] name_data = d[PeopleModel._NAME_COL]
sn = ngn(self.db, name_data) sn = ngn(self.db, name_data)
self.sortnames[handle] = sn self.sortnames[handle] = nsn(name_data)
try: try:
self.temp_sname_sub[sn].append(handle) self.temp_sname_sub[sn].append(handle)
except: except:
@ -231,7 +231,7 @@ class PeopleModel(gtk.GenericTreeModel):
if not (handle in skip or (dfilter and not dfilter.match(handle))): if not (handle in skip or (dfilter and not dfilter.match(handle))):
name_data = d[PeopleModel._NAME_COL] name_data = d[PeopleModel._NAME_COL]
sn = ngn(self.db, name_data) sn = ngn(self.db, name_data)
self.sortnames[handle] = sn self.sortnames[handle] = nsn(name_data)
try: try:
self.temp_sname_sub[sn].append(handle) self.temp_sname_sub[sn].append(handle)
except: except: