# HG changeset patch # User Paul Boddie # Date 1442160111 -7200 # Node ID ea254765154b6dcbac28aac3759ec91138e49ca6 # Parent bcf0f90542e14cb3be5cd990dba236608e6861ca Removed redundant attendee tests performed by the require_attendees method. diff -r bcf0f90542e1 -r ea254765154b imiptools/client.py --- a/imiptools/client.py Sun Sep 13 17:11:12 2015 +0200 +++ b/imiptools/client.py Sun Sep 13 18:01:51 2015 +0200 @@ -445,15 +445,6 @@ attr = self.get_attendance(user) return as_organiser and not (attr and attr.get("PARTSTAT")) and "ORG" or None - def is_attendee(self, identity, obj=None): - - """ - Return whether 'identity' is an attendee in the current object, or in - 'obj' if specified. - """ - - return identity in uri_values((obj or self.obj).get_values("ATTENDEE")) - def can_schedule(self, freebusy, periods): """ diff -r bcf0f90542e1 -r ea254765154b imiptools/handlers/person.py --- a/imiptools/handlers/person.py Sun Sep 13 17:11:12 2015 +0200 +++ b/imiptools/handlers/person.py Sun Sep 13 18:01:51 2015 +0200 @@ -95,7 +95,7 @@ # Process for the current user, an attendee. - if not self.have_new_object() or not self.is_attendee(self.user): + if not self.have_new_object(): return False # Remove additional recurrences if handling a complete event. diff -r bcf0f90542e1 -r ea254765154b imiptools/handlers/resource.py --- a/imiptools/handlers/resource.py Sun Sep 13 17:11:12 2015 +0200 +++ b/imiptools/handlers/resource.py Sun Sep 13 18:01:51 2015 +0200 @@ -44,7 +44,7 @@ # Process for the current user, a resource as attendee. - if not self.have_new_object() or not self.is_attendee(self.user): + if not self.have_new_object(): return None # Collect response objects produced when handling the request.