More fixes
svn: r3894
This commit is contained in:
parent
5eeb9e9050
commit
a70bf6bf46
@ -180,10 +180,11 @@ class Extract:
|
|||||||
return [_("Person's missing death month")]
|
return [_("Person's missing death month")]
|
||||||
|
|
||||||
def death_age(self, db, person):
|
def death_age(self, db, person):
|
||||||
birth_handle = person.get_birth_handle()
|
death_handle = person.get_death_handle()
|
||||||
if birth_handle:
|
if death_handle:
|
||||||
birth = db.get_event_from_handle(birth_handle).get_date_object()
|
death = db.get_event_from_handle(death_handle).get_date_object()
|
||||||
return [self.estimate_age(person, person.getDeath().getDateObj())]
|
return [self.estimate_age(db, person, death)]
|
||||||
|
return [_("Missing date(s)")]
|
||||||
|
|
||||||
def marriage_age(self, db, person):
|
def marriage_age(self, db, person):
|
||||||
return "Marriage age stat unimplemented"
|
return "Marriage age stat unimplemented"
|
||||||
@ -470,13 +471,18 @@ class StatisticsChartOptions(ReportOptions.ReportOptions):
|
|||||||
'year_from' : ("=num", _("Birth year from which to include people"),
|
'year_from' : ("=num", _("Birth year from which to include people"),
|
||||||
_("earlier than 'year_to' value")),
|
_("earlier than 'year_to' value")),
|
||||||
'no_years' : ("=num", _("Include people without birth years"),
|
'no_years' : ("=num", _("Include people without birth years"),
|
||||||
[_("No"), _("Yes")], False),
|
[_("No"), _("Yes")], True),
|
||||||
'gender' : ("=num", _('Genders included'), str(self._genders), False),
|
'gender' : ("=num", _('Genders included'),
|
||||||
|
[ "%d\t%s" % item for item in self._genders],
|
||||||
|
False),
|
||||||
'extract' : ("=num", _('Data to show'),
|
'extract' : ("=num", _('Data to show'),
|
||||||
str([item[0] for item in _Extract.extractors]),False),
|
[item[0] for item in _Extract.extractors],
|
||||||
'sort' : ("=num", _('Sorted by'), str(self._sorts), False),
|
False),
|
||||||
|
'sort' : ("=num", _('Sorted by'),
|
||||||
|
[ "%d\t%s" % item for item in self._sorts],
|
||||||
|
False),
|
||||||
'reverse' : ("=num", _("Sort in reverse order"),
|
'reverse' : ("=num", _("Sort in reverse order"),
|
||||||
[_("Yes"), _("No")], False)
|
[_("No"), _("Yes")], True)
|
||||||
}
|
}
|
||||||
|
|
||||||
def enable_options(self):
|
def enable_options(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user