* src/ReportUtils.py: handle "unknown_gender_name" in parameter arrays

svn: r5305
This commit is contained in:
Don Allingham 2005-10-12 14:27:52 +00:00
parent 8c2e2f357e
commit 054497f793
2 changed files with 28 additions and 19 deletions

@ -1,3 +1,6 @@
2005-10-12 Don Allingham <don@gramps-project.org>
* src/ReportUtils.py: handle "unknown_gender_name" in parameter arrays
2005-10-11 Don Allingham <don@gramps-project.org>
* src/plugins/NavWebPage.py: first pass at ancestor map
* src/data/main*.css: ancestor css styles

@ -1376,6 +1376,7 @@ def born_died_str(database,person,endnotes=None,name_object=None,person_name=Non
values = {
'unknown_gender_name' : person_name,
'name' : person_name,
'male_name' : person_name,
'female_name' : person_name,
'endnotes' : endnotes(name_object),
@ -1728,10 +1729,12 @@ def child_str(person, father_name="", mother_name="", dead=0, person_name=0):
"""
values = {
'father' : father_name,
'mother' : mother_name,
'male_name' : person_name,
'female_name' : person_name,
'father' : father_name,
'mother' : mother_name,
'male_name' : person_name,
'name' : person_name,
'female_name' : person_name,
'unknown_gender_name' : person_name,
}
if person_name == 0:
@ -1804,13 +1807,14 @@ def born_str(database,person,person_name=None,empty_date="",empty_place=""):
get_birth_death_strings(database,person,empty_date,empty_place)
value_map = {
'name' : person_name,
'male_name' : person_name,
'female_name' : person_name,
'birth_date' : bdate,
'birth_place' : bplace,
'month_year' : bdate,
'modified_date' : bdate,
'name' : person_name,
'male_name' : person_name,
'unknown_gender_name' : person_name,
'female_name' : person_name,
'birth_date' : bdate,
'birth_place' : bplace,
'month_year' : bdate,
'modified_date' : bdate,
}
gender = person.get_gender()
@ -1887,14 +1891,15 @@ def died_str(database,person,person_name=None,empty_date="",empty_place="",
get_birth_death_strings(database,person,empty_date,empty_place)
value_map = {
'name' : person_name,
'male_name' : person_name,
'female_name' : person_name,
'death_date' : ddate,
'modified_date' : ddate,
'death_place' : dplace,
'age' : age ,
'month_year' : ddate,
'name' : person_name,
'unknown_gender_name' : person_name,
'male_name' : person_name,
'female_name' : person_name,
'death_date' : ddate,
'modified_date' : ddate,
'death_place' : dplace,
'age' : age ,
'month_year' : ddate,
}
gender = person.get_gender()
@ -1977,6 +1982,7 @@ def buried_str(database,person,person_name=None,empty_date="",empty_place=""):
values = {
'unknown_gender_name' : person_name,
'male_name' : person_name,
'name' : person_name,
'female_name' : person_name,
'burial_date' : bdate,
'burial_place' : bplace,