1.1 --- a/imiptools/period.py Wed Aug 05 01:04:37 2015 +0200
1.2 +++ b/imiptools/period.py Thu Aug 06 01:14:20 2015 +0200
1.3 @@ -144,7 +144,7 @@
1.4 def __init__(self, start, end, uid=None, transp=None, recurrenceid=None, summary=None, organiser=None, tzid=None):
1.5
1.6 """
1.7 - Initialise a free/busy period with the given 'start' and 'end' limits,
1.8 + Initialise a free/busy period with the given 'start' and 'end' points,
1.9 with an optional 'tzid', plus any 'uid', 'transp', 'recurrenceid',
1.10 'summary' and 'organiser' details.
1.11 """
1.12 @@ -193,6 +193,12 @@
1.13 def __repr__(self):
1.14 return "FreeBusyPeriod%r" % (self.as_tuple(),)
1.15
1.16 + def get_start_point(self):
1.17 + return self.start
1.18 +
1.19 + def get_end_point(self):
1.20 + return self.end
1.21 +
1.22 class RecurringPeriod(Period):
1.23
1.24 """
1.25 @@ -664,6 +670,6 @@
1.26 remove_period(freebusy, uid, recurrenceid)
1.27
1.28 for p in periods:
1.29 - insert_period(freebusy, FreeBusyPeriod(p.get_start(), p.get_end(), uid, transp, recurrenceid, summary, organiser, p.tzid))
1.30 + insert_period(freebusy, FreeBusyPeriod(p.get_start_point(), p.get_end_point(), uid, transp, recurrenceid, summary, organiser, p.tzid))
1.31
1.32 # vim: tabstop=4 expandtab shiftwidth=4