2015-05-17 | Paul Boddie | raw files shortlog changelog graph | Updated start and end datetime accesses. | |
imiptools/period.py (file) |
1.1 --- a/imiptools/period.py Sun May 17 01:40:24 2015 +0200 1.2 +++ b/imiptools/period.py Sun May 17 17:16:23 2015 +0200 1.3 @@ -90,7 +90,7 @@ 1.4 1.5 def __cmp__(self, other): 1.6 if isinstance(other, FreeBusyPeriod): 1.7 - return cmp((self.start, self.end, self.uid), (other.start, other.end, other.uid)) 1.8 + return cmp((self.get_start(), self.get_end(), self.uid), (other.get_start(), other.get_end(), other.uid)) 1.9 else: 1.10 return Period.__cmp__(self, other) 1.11