* src/plugins/DetAncestralReport.py: add import of string

* src/plugins/DetDescendantReport.py: add import of string
* src/Date.py: compare date modes when comparing dates
* src/EditPerson.py: save date strings which comparing for changes
* src/FamilyView.py: Scope Person.male properly


svn: r1839
This commit is contained in:
Don Allingham
2003-07-08 00:42:26 +00:00
parent aa732c16d7
commit 604cb39f5b
5 changed files with 15 additions and 4 deletions

View File

@ -445,7 +445,9 @@ def compare_dates(f,s):
first = f.get_start_date()
second = s.get_start_date()
if first.year != second.year:
if first.mode != second.mode:
return 1
elif first.year != second.year:
return cmp(first.year,second.year)
elif first.month != second.month:
return cmp(first.month,second.month)
@ -454,7 +456,9 @@ def compare_dates(f,s):
else:
first = f.get_stop_date()
second = s.get_stop_date()
if first.year != second.year:
if first.mode != second.mode:
return 1
elif first.year != second.year:
return cmp(first.year,second.year)
elif first.month != second.month:
return cmp(first.month,second.month)