* src/GrampsDbBase.py: remove forced upper comparisons

svn: r3612
This commit is contained in:
Don Allingham 2004-10-09 03:54:42 +00:00
parent 2c6bce1b47
commit 3bbf621402
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
2004-10-08 Don Allingham <dallingham@users.sourceforge.net> 2004-10-08 Don Allingham <dallingham@users.sourceforge.net>
* src/GrampsDbBase.py: remove forced upper comparisons
* src/EditPerson.py: support for locale selected patronymic * src/EditPerson.py: support for locale selected patronymic
names. Allow patronymic name to be substituted for prefix on names. Allow patronymic name to be substituted for prefix on
the display the display

View File

@ -996,17 +996,17 @@ class GrampsDbBase:
return locale.strcoll(n1,n2) return locale.strcoll(n1,n2)
def _sortbyplace(self,f,s): def _sortbyplace(self,f,s):
return locale.strcoll(self.place_map.get(str(f))[2].upper(), return locale.strcoll(self.place_map.get(str(f))[2],
self.place_map.get(str(s))[2].upper()) self.place_map.get(str(s))[2])
def _sortbysource(self,f,s): def _sortbysource(self,f,s):
fp = self.source_map[str(f)][2].upper() fp = self.source_map[str(f)][2]
sp = self.source_map[str(s)][2].upper() sp = self.source_map[str(s)][2]
return locale.strcoll(fp,sp) return locale.strcoll(fp,sp)
def _sortbymedia(self,f,s): def _sortbymedia(self,f,s):
fp = self.media_map[str(f)][4].upper() fp = self.media_map[str(f)][4]
sp = self.media_map[str(s)][4].upper() sp = self.media_map[str(s)][4]
return locale.strcoll(fp,sp) return locale.strcoll(fp,sp)
def set_person_column_order(self,list): def set_person_column_order(self,list):