Fixed None comparison for dates
svn: r238
This commit is contained in:
parent
63bdead443
commit
0adcb8b7e6
@ -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)
|
||||
|
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user