Add wrappers for displaying the tuple types to unify their usage.

svn: r6193
This commit is contained in:
Martin Hawlisch
2006-03-22 21:19:32 +00:00
parent 936b073c02
commit d6a44469e0
7 changed files with 110 additions and 103 deletions

View File

@@ -2101,22 +2101,6 @@ def list_person_str(database,person,empty_date="",empty_place=""):
return text
#-------------------------------------------------------------------------
#
# relationship_name
#
#-------------------------------------------------------------------------
_rtype = {
RelLib.Family.MARRIED : _("Married"),
RelLib.Family.UNMARRIED : _("Unmarried"),
RelLib.Family.CIVIL_UNION : _("Civil Union"),
RelLib.Family.UNKNOWN : _("Unknown"),
RelLib.Family.CUSTOM : _("Other"),
}
def relationship_name(rtype):
return _rtype.get(rtype)
def old_calc_age(database,person):
"""
Calulate age.