1.1 --- a/imiptools/content.py Sun Feb 01 21:02:53 2015 +0100
1.2 +++ b/imiptools/content.py Sun Feb 01 21:05:55 2015 +0100
1.3 @@ -27,7 +27,7 @@
1.4 get_address, get_fragments, get_uri, get_value, \
1.5 is_new_object, uri_dict, uri_item
1.6 from imiptools.dates import *
1.7 -from imiptools.period import have_conflict, insert_period, remove_period
1.8 +from imiptools.period import can_schedule, insert_period, remove_period
1.9 from pytz import timezone
1.10 from socket import gethostname
1.11 from vRecurrence import get_parameters, get_rule
1.12 @@ -131,20 +131,6 @@
1.13 _update_freebusy(freebusy, periods, transp, uid)
1.14 store.set_freebusy_for_other(user, freebusy, other)
1.15
1.16 -def can_schedule(freebusy, periods, uid):
1.17 -
1.18 - """
1.19 - Return whether the 'freebusy' list can accommodate the given 'periods'
1.20 - employing the specified 'uid'.
1.21 - """
1.22 -
1.23 - for conflict in have_conflict(freebusy, periods, True):
1.24 - start, end, found_uid, found_transp = conflict
1.25 - if found_uid != uid:
1.26 - return False
1.27 -
1.28 - return True
1.29 -
1.30 # Handler mechanism objects.
1.31
1.32 def handle_itip_part(part, senders, recipient, handlers, messenger):