5144: Locale not taken into account to sort family list on father or mother name

svn: r20517
This commit is contained in:
Benny Malengier 2012-10-04 07:59:01 +00:00
parent 6bab48a92b
commit a8f5f13950

View File

@ -114,30 +114,30 @@ class FamilyModel(FlatBaseModel):
def column_father(self, data):
if data[2]:
person = self.db.get_person_from_handle(data[2])
return unicode(name_displayer.sorted_name(person.primary_name))
return name_displayer.display_name(person.primary_name)
else:
return u""
return ""
def sort_father(self, data):
if data[2]:
person = self.db.get_person_from_handle(data[2])
return name_displayer.sort_string(person.primary_name)
return name_displayer.sorted_name(person.primary_name)
else:
return u""
return ""
def column_mother(self, data):
if data[3]:
person = self.db.get_person_from_handle(data[3])
return unicode(name_displayer.sorted_name(person.primary_name))
return name_displayer.display_name(person.primary_name)
else:
return u""
return ""
def sort_mother(self, data):
if data[3]:
person = self.db.get_person_from_handle(data[3])
return name_displayer.sort_string(person.primary_name)
return name_displayer.sorted_name(person.primary_name)
else:
return u""
return ""
def column_type(self, data):
return unicode(FamilyRelType(data[5]))