Fixed date filters, allow for a reload plugin functionality

svn: r512
This commit is contained in:
Don Allingham
2001-10-27 14:10:07 +00:00
parent 975a9f96de
commit 9d37510a31
6 changed files with 154 additions and 181 deletions

View File

@@ -105,6 +105,15 @@ class Date:
self.stop = SingleDate()
return self.get_stop_date().getDay()
def greater_than(self,other):
return compare_dates(self,other) > 0
def less_than(self,other):
return compare_dates(self,other) < 0
def equal_to(self,other):
return compare_dates(other) == 0
#--------------------------------------------------------------------
#
#
@@ -347,7 +356,7 @@ class SingleDate:
#
#
#--------------------------------------------------------------------
def __cmp__(self,other):
def my__cmp__(self,other):
if other == None:
return 0
elif self.year != other.year: