# HG changeset patch # User Paul Boddie # Date 1441662407 -7200 # Node ID 64bd801145389142ab63c91a35e65d3488db3e56 # Parent abf2cd4a427b64ec748622dabc90b9a276d71649 Introduced missing explicit participation tests. diff -r abf2cd4a427b -r 64bd80114538 imiptools/handlers/person_outgoing.py --- a/imiptools/handlers/person_outgoing.py Mon Sep 07 23:46:13 2015 +0200 +++ b/imiptools/handlers/person_outgoing.py Mon Sep 07 23:46:47 2015 +0200 @@ -20,6 +20,7 @@ this program. If not, see . """ +from imiptools.client import Client from imiptools.data import uri_dict, uri_item, uri_values from imiptools.handlers import Handler from imiptools.handlers.common import CommonEvent @@ -43,6 +44,8 @@ "Add a recurrence for the current object." self.set_identity() + if not Client.is_participating(self): + return False # Obtain valid organiser and attendee details. @@ -79,6 +82,8 @@ """ self.set_identity(from_organiser) + if not Client.is_participating(self): + return False # Check for a new event, tolerating not-strictly-new events if the # attendee is responding. @@ -124,6 +129,8 @@ """ self.set_identity(True) + if not Client.is_participating(self): + return False # Check for event using UID.