1.1 --- a/imiptools/handlers/scheduling/freebusy.py Sat Jan 30 17:24:39 2016 +0100
1.2 +++ b/imiptools/handlers/scheduling/freebusy.py Sun Jan 31 00:45:26 2016 +0100
1.3 @@ -25,7 +25,7 @@
1.4 periods_from, remove_event_periods, \
1.5 remove_periods
1.6
1.7 -def schedule_in_freebusy(handler, freebusy=None):
1.8 +def schedule_in_freebusy(handler, args, freebusy=None):
1.9
1.10 """
1.11 Attempt to schedule the current object of the given 'handler' in the
1.12 @@ -53,7 +53,7 @@
1.13
1.14 return scheduled and "ACCEPTED" or "DECLINED"
1.15
1.16 -def schedule_corrected_in_freebusy(handler):
1.17 +def schedule_corrected_in_freebusy(handler, args):
1.18
1.19 """
1.20 Attempt to schedule the current object of the given 'handler', correcting
1.21 @@ -88,7 +88,7 @@
1.22
1.23 return scheduled == "ACCEPTED" and (corrected and "COUNTER" or "ACCEPTED") or "DECLINED"
1.24
1.25 -def schedule_next_available_in_freebusy(handler):
1.26 +def schedule_next_available_in_freebusy(handler, args):
1.27
1.28 """
1.29 Attempt to schedule the current object of the given 'handler', correcting
1.30 @@ -202,7 +202,7 @@
1.31
1.32 # Check one last time, reverting the change if not scheduled.
1.33
1.34 - scheduled = schedule_in_freebusy(handler, busy)
1.35 + scheduled = schedule_in_freebusy(handler, args, busy)
1.36
1.37 if scheduled == "DECLINED":
1.38 handler.set_object(obj)