1.1 --- a/imiptools/client.py Sat Oct 24 16:12:06 2015 +0200
1.2 +++ b/imiptools/client.py Sat Oct 24 17:14:59 2015 +0200
1.3 @@ -787,8 +787,19 @@
1.4 # Use any attendee property information for an organiser, not the
1.5 # organiser property attributes.
1.6
1.7 - attr = self.get_attendance(user, obj=obj)
1.8 - return as_organiser or attr is not None and not attr or attr and attr.get("PARTSTAT") != "DECLINED"
1.9 + attr = self.get_attendance(user, obj)
1.10 + return as_organiser or attr is not None and not attr or attr and attr.get("PARTSTAT") not in ("DECLINED", "NEEDS-ACTION")
1.11 +
1.12 + def has_indicated_attendance(self, user=None, obj=None):
1.13 +
1.14 + """
1.15 + Return whether the given 'user' (or the current user if not specified)
1.16 + has indicated attendance in the given 'obj' (or the current object if
1.17 + not specified).
1.18 + """
1.19 +
1.20 + attr = self.get_attendance(user, obj)
1.21 + return attr and attr.get("PARTSTAT") not in (None, "NEEDS-ACTION")
1.22
1.23 def get_overriding_transparency(self, user, as_organiser=False):
1.24