* src/sort: Typos.

svn: r2832
This commit is contained in:
Alex Roitman 2004-02-15 03:48:45 +00:00
parent be7b042fda
commit 2baffc68d2
3 changed files with 12 additions and 11 deletions

View File

@ -16,6 +16,7 @@
* src/PlaceView.py (key_press): Add function.
* src/SourceView.py (key_press): Add function.
* src/plugins/WebPage.py: Add tab with index page options.
* src/sort: Typos.
2004-02-13 Egyeki Gergely <egeri@elte.hu>
* src/po/hu.po: Update

View File

@ -228,7 +228,7 @@ class IndividualPage:
person = self.db.find_person_from_id(person_id)
if self.list.has_key(person.get_id()):
self.doc.start_link("%s.%s" % (person.get_id(),self.ext))
self.doc.write_text(person.getPrimaryName().getRegularName())
self.doc.write_text(person.get_primary_name().get_regular_name())
self.doc.end_link()
else:
self.doc.write_text(person.get_primary_name().get_regular_name())
@ -829,7 +829,7 @@ class WebReport(Report.Report):
col_len = n_rows
for person in p_list:
name = person.get_primary_name().get_surname()
name = person.get_primary_name().get_name()
doc.start_link("%s.%s" % (person.get_id(),self.ext))
doc.write_text(name)
@ -863,7 +863,7 @@ class WebReport(Report.Report):
col_len = col_len - 1
for person in p_list:
name = person.get_primary_name().get_surname()
name = person.get_primary_name().get_name()
doc.start_link("%s.%s" % (person.get_id(),self.ext))
doc.write_text(name)

View File

@ -71,17 +71,17 @@ def build_sort_date(n):
def by_last_name(first, second):
"""Sort routine for comparing two last names. If last names are equal,
uses the given name and suffix"""
name1 = first.PrimaryName
name2 = second.PrimaryName
name1 = first.get_primary_name()
name2 = second.get_primary_name()
fsn = name1.Surname.upper()
ssn = name2.Surname.upper()
fsn = name1.get_surname().upper()
ssn = name2.get_surname().upper()
if fsn == ssn :
ffn = name1.FirstName.upper()
sfn = name2.FirstName.upper()
ffn = name1.get_first_name().upper()
sfn = name2.get_first_name().upper()
if ffn == sfn :
return cmp(name1.Suffix.upper(), name2.Suffix.upper())
return cmp(name1.get_suffix().upper(), name2.get_suffix().upper())
else :
return cmp(ffn, sfn)
else :