imip-agent

Changeset

738:ea254765154b
2015-09-13 Paul Boddie raw files shortlog changelog graph Removed redundant attendee tests performed by the require_attendees method.
imiptools/client.py (file) imiptools/handlers/person.py (file) imiptools/handlers/resource.py (file)
     1.1 --- a/imiptools/client.py	Sun Sep 13 17:11:12 2015 +0200
     1.2 +++ b/imiptools/client.py	Sun Sep 13 18:01:51 2015 +0200
     1.3 @@ -445,15 +445,6 @@
     1.4          attr = self.get_attendance(user)
     1.5          return as_organiser and not (attr and attr.get("PARTSTAT")) and "ORG" or None
     1.6  
     1.7 -    def is_attendee(self, identity, obj=None):
     1.8 -
     1.9 -        """
    1.10 -        Return whether 'identity' is an attendee in the current object, or in
    1.11 -        'obj' if specified.
    1.12 -        """
    1.13 -
    1.14 -        return identity in uri_values((obj or self.obj).get_values("ATTENDEE"))
    1.15 -
    1.16      def can_schedule(self, freebusy, periods):
    1.17  
    1.18          """
     2.1 --- a/imiptools/handlers/person.py	Sun Sep 13 17:11:12 2015 +0200
     2.2 +++ b/imiptools/handlers/person.py	Sun Sep 13 18:01:51 2015 +0200
     2.3 @@ -95,7 +95,7 @@
     2.4  
     2.5              # Process for the current user, an attendee.
     2.6  
     2.7 -            if not self.have_new_object() or not self.is_attendee(self.user):
     2.8 +            if not self.have_new_object():
     2.9                  return False
    2.10  
    2.11              # Remove additional recurrences if handling a complete event.
     3.1 --- a/imiptools/handlers/resource.py	Sun Sep 13 17:11:12 2015 +0200
     3.2 +++ b/imiptools/handlers/resource.py	Sun Sep 13 18:01:51 2015 +0200
     3.3 @@ -44,7 +44,7 @@
     3.4  
     3.5          # Process for the current user, a resource as attendee.
     3.6  
     3.7 -        if not self.have_new_object() or not self.is_attendee(self.user):
     3.8 +        if not self.have_new_object():
     3.9              return None
    3.10  
    3.11          # Collect response objects produced when handling the request.