1.1 --- a/imiptools/data.py Tue Sep 01 15:59:42 2015 +0200
1.2 +++ b/imiptools/data.py Tue Sep 01 19:43:40 2015 +0200
1.3 @@ -330,18 +330,23 @@
1.4 if p.get_end_point() > dt:
1.5 return True
1.6
1.7 + return self.possibly_recurring_indefinitely()
1.8 +
1.9 + def possibly_recurring_indefinitely(self):
1.10 +
1.11 + "Return whether this object may recur indefinitely."
1.12 +
1.13 rrule = self.get_value("RRULE")
1.14 parameters = rrule and get_parameters(rrule)
1.15 until = parameters and parameters.get("UNTIL")
1.16 count = parameters and parameters.get("COUNT")
1.17
1.18 - # Non-recurring periods or constrained recurrences that are not found to
1.19 - # lie beyond the specified datetime.
1.20 + # Non-recurring periods or constrained recurrences.
1.21
1.22 if not rrule or until or count:
1.23 return False
1.24
1.25 - # Unconstrained recurring periods will always lie beyond the specified
1.26 + # Unconstrained recurring periods will always lie beyond any specified
1.27 # datetime.
1.28
1.29 else: