Fixed None comparison for dates

svn: r238
This commit is contained in:
Don Allingham 2001-07-08 05:44:42 +00:00
parent 63bdead443
commit 0adcb8b7e6
2 changed files with 4 additions and 2 deletions

View File

@ -324,7 +324,9 @@ class SingleDate:
#
#--------------------------------------------------------------------
def __cmp__(self,other):
if self.year != other.year:
if other == None:
return 0
elif self.year != other.year:
return cmp(self.year,other.year)
elif self.month != other.month:
return cmp(self.month,other.month)

View File

@ -74,7 +74,7 @@ gtkrcFile = rootDir + os.sep + "gtkrc"
#
#-------------------------------------------------------------------------
progName = "gramps"
version = "0.3.2"
version = "0.4.0pre"
copyright = "(C) 2001 Donald N. Allingham"
authors = ["Donald N. Allingham"]
comments = _("Gramps (Genealogical Research and Analysis Management Programming System) is a personal genealogy program that can be extended by using the Python programming language.")