# HG changeset patch # User Paul Boddie # Date 1445549320 -7200 # Node ID 0b6313490e797219bc839e35af080ef5d8b07f2a # Parent f2597bc8f683ead89f50a31d30042c5db7946159 Normalised the removed attendees and fixed access to the current object. diff -r f2597bc8f683 -r 0b6313490e79 imiptools/client.py --- a/imiptools/client.py Thu Oct 22 22:08:06 2015 +0200 +++ b/imiptools/client.py Thu Oct 22 23:28:40 2015 +0200 @@ -486,8 +486,7 @@ # present in the object. added = set(uri_values(attendees)).difference([uri for uri, attr in existing_attendees]) - - # NOTE: When countering, no removals will occur, but additions might. + removed = uri_values(removed) if added or removed: @@ -502,7 +501,7 @@ # Only when an event has not been published can # attendees be silently removed. - if obj.is_shared(): + if self.obj.is_shared(): to_cancel.append((attendee, attendee_attr)) else: remaining.append((attendee, attendee_attr))