* 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:
@ -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)
|
||||
|
Reference in New Issue
Block a user