* src/DetAncestralReport.py (write_death): Proper checks for valid day

* src/DetDescendantReport.py (write_death): Likewise.


svn: r1641
This commit is contained in:
Alex Roitman 2003-06-02 22:46:58 +00:00
parent ea03a043d6
commit 62d8aa6ee6
2 changed files with 4 additions and 4 deletions

View File

@ -324,10 +324,10 @@ class DetAncestorReport(Report):
place= "_____________"
if date.getDate() != "":
if date.getDay() > 0 and date.getMonth() > 0 and \
if date.getDay() and date.getMonth() and \
rptOptions.fullDate == reportOptions.Yes:
fulldate= date.getDate()
elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes:
elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes:
fulldate= "%s %s" % (date.getMonth(), date.getYear())
else: fulldate= ""
elif rptOptions.blankDate == reportOptions.Yes:

View File

@ -336,10 +336,10 @@ class DetDescendantReport(Report):
place= "_____________"
if date.getDate() != "":
if date.getDay() > 0 and date.getMonth() > 0 and \
if date.getDay() and date.getMonth() and \
rptOptions.fullDate == reportOptions.Yes:
fulldate= date.getDate()
elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes:
elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes:
fulldate= "%s %s" % (date.getMonth(), date.getYear())
else: fulldate= ""
elif rptOptions.blankDate == reportOptions.Yes: