5144: Locale not taken into account to sort family list on father or mother name
svn: r20516
This commit is contained in:
parent
92049ddf95
commit
9b8c8f5ff1
@ -117,30 +117,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(gen.lib.FamilyRelType(data[5]))
|
||||
|
Loading…
Reference in New Issue
Block a user