# HG changeset patch # User Paul Boddie # Date 1444944641 -7200 # Node ID 96b31443c14e4490e6c96d41d5458e1394b47723 # Parent a18e4a9fc03a1a0930c83058a88eab7fe6b5cfa4 Show the end datetime for events employing DURATION. diff -r a18e4a9fc03a -r 96b31443c14e imipweb/event.py --- a/imipweb/event.py Thu Oct 15 19:37:50 2015 +0200 +++ b/imipweb/event.py Thu Oct 15 23:30:41 2015 +0200 @@ -226,8 +226,15 @@ items = uri_items(self.obj.get_items(name) or []) rowspan = len(items) - if name == "ATTENDEE": - rowspan = len(attendees) + 1 # for the add button + # Adjust rowspan for add button rows. + # Skip properties without items apart from attendee (where items + # may be added) and the end datetime (which might be described by a + # duration property). + + if name in "ATTENDEE": + rowspan = len(attendees) + 1 + elif name == "DTEND": + rowspan = 1 elif not items: continue @@ -236,7 +243,7 @@ # Handle datetimes specially. - if name in ["DTSTART", "DTEND"]: + if name in ("DTSTART", "DTEND"): if not replaced and not excluded: # Obtain the datetime. @@ -420,7 +427,6 @@ page.p.close() # Obtain the periods associated with the event. - # NOTE: Add a control to add recurrences here. recurrences = self.get_current_recurrences()