Built in web page templates, Date indicators

svn: r852
This commit is contained in:
Don Allingham
2002-03-21 03:04:13 +00:00
parent 74a303c86b
commit b54db91d48
14 changed files with 398 additions and 82 deletions

View File

@@ -179,6 +179,11 @@ class Date:
""" Returns true if any part of the date is valid"""
return self.start.year != UNDEF or self.start.month != UNDEF or self.start.day != UNDEF
def getIncomplete(self):
return self.range == 0 and self.start.year == UNDEF or \
self.start.month == UNDEF or self.start.day == UNDEF
def getStopYear(self):
if self.stop == None:
self.stop = SingleDate()