# HG changeset patch # User Paul Boddie # Date 1454945664 -3600 # Node ID 9bc020106f0e6dcbf943ec4155bc3d9c2e462822 # Parent 1d9c0c8cf99ccf3cf97e029c1092fa9c04383180 Used the handler method to remove periods from a free/busy collection. diff -r 1d9c0c8cf99c -r 9bc020106f0e imiptools/handlers/scheduling/freebusy.py --- a/imiptools/handlers/scheduling/freebusy.py Mon Feb 08 16:33:31 2016 +0100 +++ b/imiptools/handlers/scheduling/freebusy.py Mon Feb 08 16:34:24 2016 +0100 @@ -22,8 +22,7 @@ from imiptools.data import uri_values from imiptools.dates import ValidityError, to_timezone from imiptools.period import coalesce_freebusy, invert_freebusy, \ - periods_from, remove_event_periods, \ - remove_periods + periods_from, remove_periods def schedule_in_freebusy(handler, args, freebusy=None): @@ -110,7 +109,7 @@ # Subtract any periods from this event from the free/busy collections. - event_periods = remove_event_periods(user_freebusy, handler.uid, handler.recurrenceid) + event_periods = handler.remove_from_freebusy(user_freebusy) # Find busy periods for the other attendees.