1.1 --- a/imiptools/period.py Sun Sep 13 18:23:42 2015 +0200
1.2 +++ b/imiptools/period.py Sun Sep 13 19:00:15 2015 +0200
1.3 @@ -757,16 +757,19 @@
1.4
1.5 return spans
1.6
1.7 -def update_freebusy(freebusy, periods, transp, uid, recurrenceid, summary, organiser):
1.8 +def update_freebusy(freebusy, periods, transp, uid, recurrenceid, summary, organiser, expires=None):
1.9
1.10 """
1.11 Update the free/busy details with the given 'periods', 'transp' setting,
1.12 'uid' plus 'recurrenceid' and 'summary' and 'organiser' details.
1.13 +
1.14 + An optional 'expires' datetime string indicates the expiry time of any
1.15 + free/busy offer.
1.16 """
1.17
1.18 remove_period(freebusy, uid, recurrenceid)
1.19
1.20 for p in periods:
1.21 - insert_period(freebusy, FreeBusyPeriod(p.get_start_point(), p.get_end_point(), uid, transp, recurrenceid, summary, organiser))
1.22 + insert_period(freebusy, FreeBusyPeriod(p.get_start_point(), p.get_end_point(), uid, transp, recurrenceid, summary, organiser, expires))
1.23
1.24 # vim: tabstop=4 expandtab shiftwidth=4