* src/Sort.py: use locale.strcoll for sorting

* src/RelLib.py: don't use accent for sort name
* src/EditPerson.py: compare edited ID value properly
* src/Marriage.py: compare edited ID value properly
* src/PeopleModel.py: use locale.strcoll for comparing
* src/GrampsBSDDB.py: use locale.strcoll for comparing/sorting
* src/GrampsDbBase.py: use locale.strcoll for comparing/sorting
* src/DbPrompter.py: handle bad filenames a bit better


svn: r3514
This commit is contained in:
Don Allingham
2004-08-26 21:54:14 +00:00
parent 4ab4faa6ba
commit f9f9ea670b
9 changed files with 46 additions and 23 deletions

View File

@@ -27,6 +27,7 @@
#-------------------------------------------------------------------------
from gettext import gettext as _
import time
import locale
#-------------------------------------------------------------------------
#
@@ -130,7 +131,7 @@ class PeopleModel(gtk.GenericTreeModel):
def byname(self,f,s):
n1 = self.db.person_map.get(str(f))[_NAME_COL].get_sort_name()
n2 = self.db.person_map.get(str(s))[_NAME_COL].get_sort_name()
return cmp(n1,n2)
return locale.strcoll(n1,n2)
def on_get_flags(self):
'''returns the GtkTreeModelFlags for this particular type of model'''