* src/Date.py (__cmp__): check for Date instance before compare

* src/plugins/DetAncestralReport.py: fixed i18n strings
* src/ReadGedcom.py: handle FTM style of child/parent relationship
translation
* src/gedcomimport.py:


svn: r4403
This commit is contained in:
Don Allingham
2005-04-22 19:49:08 +00:00
parent 1ec714006e
commit 716a3119e7
2 changed files with 11 additions and 1 deletions

View File

@@ -135,7 +135,10 @@ class Date:
Comparison function. Allows the usage of equality tests.
This allows you do run statements like 'date1 <= date2'
"""
return cmp(self.sortval,other.sortval)
if isinstance(other,Date):
return cmp(self.sortval,other.sortval)
else:
return -1
def is_equal(self,other):
"""