* 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 f13dcf2e38
commit 62b65130b4
2 changed files with 4 additions and 4 deletions

View File

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

View File

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