1.1 --- a/imipweb/event.py Thu Oct 15 19:37:50 2015 +0200
1.2 +++ b/imipweb/event.py Thu Oct 15 23:30:41 2015 +0200
1.3 @@ -226,8 +226,15 @@
1.4 items = uri_items(self.obj.get_items(name) or [])
1.5 rowspan = len(items)
1.6
1.7 - if name == "ATTENDEE":
1.8 - rowspan = len(attendees) + 1 # for the add button
1.9 + # Adjust rowspan for add button rows.
1.10 + # Skip properties without items apart from attendee (where items
1.11 + # may be added) and the end datetime (which might be described by a
1.12 + # duration property).
1.13 +
1.14 + if name in "ATTENDEE":
1.15 + rowspan = len(attendees) + 1
1.16 + elif name == "DTEND":
1.17 + rowspan = 1
1.18 elif not items:
1.19 continue
1.20
1.21 @@ -236,7 +243,7 @@
1.22
1.23 # Handle datetimes specially.
1.24
1.25 - if name in ["DTSTART", "DTEND"]:
1.26 + if name in ("DTSTART", "DTEND"):
1.27 if not replaced and not excluded:
1.28
1.29 # Obtain the datetime.
1.30 @@ -420,7 +427,6 @@
1.31 page.p.close()
1.32
1.33 # Obtain the periods associated with the event.
1.34 - # NOTE: Add a control to add recurrences here.
1.35
1.36 recurrences = self.get_current_recurrences()
1.37