1.1 --- a/imiptools/client.py Sat Jan 20 17:41:23 2018 +0100
1.2 +++ b/imiptools/client.py Sat Jan 20 18:18:12 2018 +0100
1.3 @@ -440,6 +440,8 @@
1.4
1.5 "Set the current object to 'obj', obtaining metadata details."
1.6
1.7 + # Set convenience attributes to null values if the object is null.
1.8 +
1.9 self.obj = obj
1.10 self.uid = obj and self.obj.get_uid()
1.11 self.recurrenceid = obj and self.obj.get_recurrenceid()
1.12 @@ -496,12 +498,15 @@
1.13
1.14 return self.obj.get_uri("ORGANIZER") == self.user
1.15
1.16 - def is_recurrence(self):
1.17 + def describes_recurrence_period(self):
1.18
1.19 - "Return whether the current object is a recurrence of its parent."
1.20 + """
1.21 + Return whether the current object describes a recurrence period defined
1.22 + in its parent.
1.23 + """
1.24
1.25 parent = self.get_parent_object()
1.26 - return parent and parent.has_recurrence(self.obj.get_recurrenceid())
1.27 + return parent and parent.has_recurrence_period(self.obj.get_recurrenceid())
1.28
1.29 def get_recurrences(self, uid=None):
1.30