1.1 --- a/imipweb/handler.py Wed Apr 01 00:00:16 2015 +0200
1.2 +++ b/imipweb/handler.py Wed Apr 01 01:31:39 2015 +0200
1.3 @@ -19,8 +19,8 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from imiptools.client import Client, update_attendees
1.8 -from imiptools.data import get_address, get_uri, get_window_end, make_freebusy, \
1.9 +from imiptools.client import Client
1.10 +from imiptools.data import get_address, get_uri, make_freebusy, \
1.11 to_part, uri_item, uri_items, uri_values
1.12 from imiptools.dates import get_timestamp
1.13 from imiptools.handlers import Handler
1.14 @@ -131,20 +131,17 @@
1.15
1.16 return False
1.17
1.18 - def process_created_request(self, method, update=False, removed=None, added=None):
1.19 + def process_created_request(self, method, update=False, to_cancel=None):
1.20
1.21 """
1.22 - Process the current request for the given 'user', sending a created
1.23 - request of the given 'method' to attendees. Return whether any action
1.24 - was taken.
1.25 + Process the current request, sending a created request of the given
1.26 + 'method' to attendees. Return whether any action was taken.
1.27
1.28 If 'update' is given, the sequence number will be incremented in order
1.29 to override any previous message.
1.30
1.31 - If 'removed' is specified, a list of participants to be removed is
1.32 - provided.
1.33 -
1.34 - If 'added' is specified, a list of participants to be added is provided.
1.35 + If 'to_cancel' is specified, a list of participants to be sent cancel
1.36 + messages is provided.
1.37 """
1.38
1.39 organiser, organiser_attr = uri_item(self.obj.get_item("ORGANIZER"))
1.40 @@ -152,10 +149,6 @@
1.41 if self.messenger and self.messenger.sender != get_address(organiser):
1.42 organiser_attr["SENT-BY"] = get_uri(self.messenger.sender)
1.43
1.44 - # Update the attendees in the event.
1.45 -
1.46 - to_cancel = update_attendees(self.obj, added, removed)
1.47 -
1.48 self.update_dtstamp()
1.49 self.set_sequence(update)
1.50