# HG changeset patch # User Paul Boddie # Date 1425338771 -3600 # Node ID f34c3333cc4f7d16df6635fcc2a08d92ac976891 # Parent 0591b1098fc7c5cc64f053ceeb0b7e9888748ede Made organisers also attendees by default, since organisers are not allowed to have participation status. See: https://bugzilla.mozilla.org/show_bug.cgi?id=459683 diff -r 0591b1098fc7 -r f34c3333cc4f imip_manager.py --- a/imip_manager.py Tue Mar 03 00:25:10 2015 +0100 +++ b/imip_manager.py Tue Mar 03 00:26:11 2015 +0100 @@ -549,12 +549,14 @@ rwrite(("DTEND", end_attr, end_value)) rwrite(("ORGANIZER", {}, self.user)) + participants = uri_values(filter(None, participants)) + for participant in participants: - if not participant: - continue - participant = get_uri(participant) rwrite(("ATTENDEE", {"RSVP" : "TRUE", "PARTSTAT" : "NEEDS-ACTION"}, participant)) + if self.user not in participants: + rwrite(("ATTENDEE", {"PARTSTAT" : "ACCEPTED"}, self.user)) + node = ("VEVENT", {}, record) self.store.set_event(self.user, this_uid, None, node=node)