* src/GrampsDb/_GrampsBSDDB.py: qualify strxfrm

svn: r5848
This commit is contained in:
Don Allingham 2006-01-28 19:32:09 +00:00
parent 52ba278ea1
commit 01041620c5
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-01-28 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: qualify strxfrm
2006-01-27 Alex Roitman <shura@gramps-project.org> 2006-01-27 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: Typo. * src/GrampsDb/_ReadGedcom.py: Typo.
* src/GrampsDb/_GrampsBSDDB.py: Correct duplicate event IDs on upgrade. * src/GrampsDb/_GrampsBSDDB.py: Correct duplicate event IDs on upgrade.

View File

@ -857,10 +857,10 @@ class GrampsBSDDB(GrampsDbBase):
return table.keys() return table.keys()
def get_surname_list(self): def get_surname_list(self):
vals = [ (strxfrm(unicode(val)),unicode(val)) vals = [ (locale.strxfrm(unicode(val)),unicode(val))
for val in set(self.surnames.keys()) ] for val in set(self.surnames.keys()) ]
vals.sort() vals.sort()
return [item[0] for item in vals] return [item[1] for item in vals]
def get_person_event_type_list(self): def get_person_event_type_list(self):
vals = [ unicode(val) for val in set(self.eventnames.keys()) ] vals = [ unicode(val) for val in set(self.eventnames.keys()) ]