1.1 --- a/imip_manager.py Tue Mar 03 00:25:10 2015 +0100
1.2 +++ b/imip_manager.py Tue Mar 03 00:26:11 2015 +0100
1.3 @@ -549,12 +549,14 @@
1.4 rwrite(("DTEND", end_attr, end_value))
1.5 rwrite(("ORGANIZER", {}, self.user))
1.6
1.7 + participants = uri_values(filter(None, participants))
1.8 +
1.9 for participant in participants:
1.10 - if not participant:
1.11 - continue
1.12 - participant = get_uri(participant)
1.13 rwrite(("ATTENDEE", {"RSVP" : "TRUE", "PARTSTAT" : "NEEDS-ACTION"}, participant))
1.14
1.15 + if self.user not in participants:
1.16 + rwrite(("ATTENDEE", {"PARTSTAT" : "ACCEPTED"}, self.user))
1.17 +
1.18 node = ("VEVENT", {}, record)
1.19
1.20 self.store.set_event(self.user, this_uid, None, node=node)