1.1 --- a/imip_manager.py Mon Mar 09 18:30:38 2015 +0100
1.2 +++ b/imip_manager.py Mon Mar 09 21:33:38 2015 +0100
1.3 @@ -1670,11 +1670,11 @@
1.4
1.5 have_active = reduce(lambda x, y: x or y, [slots and slots.get(point) for slots in groups], None)
1.6
1.7 - css = " ".join(
1.8 - ["slot"] +
1.9 - (have_active and ["busy"] or ["empty"]) +
1.10 - (continuation and ["daystart"] or [])
1.11 - )
1.12 + css = " ".join([
1.13 + "slot",
1.14 + have_active and "busy" or "empty",
1.15 + continuation and "daystart" or ""
1.16 + ])
1.17
1.18 page.tr(class_=css)
1.19 page.th(class_="timeslot")
1.20 @@ -1727,12 +1727,12 @@
1.21 will_continue = not ends_on_same_day(point, end, tzid)
1.22 is_organiser = organiser == self.user
1.23
1.24 - css = " ".join(
1.25 - ["event"] +
1.26 - (has_continued and ["continued"] or []) +
1.27 - (will_continue and ["continues"] or []) +
1.28 - (is_organiser and ["organising"] or ["attending"])
1.29 - )
1.30 + css = " ".join([
1.31 + "event",
1.32 + has_continued and "continued" or "",
1.33 + will_continue and "continues" or "",
1.34 + is_organiser and "organising" or "attending"
1.35 + ])
1.36
1.37 # Only anchor the first cell of events.
1.38 # NOTE: Need to only anchor the first period for a