1.1 --- a/tools/make_freebusy.py Tue Feb 09 15:57:23 2016 +0100
1.2 +++ b/tools/make_freebusy.py Wed Mar 02 21:17:11 2016 +0100
1.3 @@ -37,7 +37,7 @@
1.4 from imiptools.client import Client
1.5 from imiptools.data import get_window_end, Object
1.6 from imiptools.dates import get_default_timezone, to_utc_datetime
1.7 -from imiptools.period import insert_period
1.8 +from imiptools.period import FreeBusyCollection
1.9 from imip_store import FileStore, FilePublisher, FileJournal
1.10
1.11 def make_freebusy(client, participant, store_and_publish, include_needs_action,
1.12 @@ -86,7 +86,7 @@
1.13
1.14 if not all_events:
1.15 all_events = store.get_all_events(user)
1.16 - fb = []
1.17 + fb = FreeBusyCollection()
1.18
1.19 # With providers of additional periods, append to the existing collection.
1.20
1.21 @@ -115,7 +115,7 @@
1.22 if obj.get_participation(partstat, include_needs_action):
1.23 for p in obj.get_active_periods(recurrenceids, tzid, window_end):
1.24 fbp = obj.get_freebusy_period(p, partstat == "ORG")
1.25 - insert_period(fb, fbp)
1.26 + fb.insert_period(fbp)
1.27
1.28 # Store and publish the free/busy collection.
1.29