# HG changeset patch # User Paul Boddie # Date 1431880591 -7200 # Node ID a2924bf9725d7f7f9d9a207ac98fa0199e0ac9ab # Parent e3a54eaec0ef85bf5ef8fee987153afbb17e9ded Updated start and end datetime accesses. diff -r e3a54eaec0ef -r a2924bf9725d imipweb/calendar.py --- a/imipweb/calendar.py Sun May 17 18:36:00 2015 +0200 +++ b/imipweb/calendar.py Sun May 17 18:36:31 2015 +0200 @@ -677,10 +677,10 @@ # Points defining the ends of instant events should # never define the start of new events. - if point.indicator == Point.PRINCIPAL and (point.point == p.start or continuation): + if point.indicator == Point.PRINCIPAL and (point.point == p.get_start() or continuation): - has_continued = continuation and point.point != p.start - will_continue = not ends_on_same_day(point.point, p.end, tzid) + has_continued = continuation and point.point != p.get_start() + will_continue = not ends_on_same_day(point.point, p.get_end(), tzid) is_organiser = p.organiser == self.user css = " ".join([ @@ -696,7 +696,7 @@ html_id = "%s-%s-%s" % (group_type, p.uid, p.recurrenceid or "") - if point.point == p.start and html_id not in self.html_ids: + if point.point == p.get_start() and html_id not in self.html_ids: page.td(class_=css, rowspan=span, id=html_id) self.html_ids.add(html_id) else: