# HG changeset patch # User Paul Boddie # Date 1263772835 -3600 # Node ID fdf1ec151ab6b90fdabd9c721f820862f2730da4 # Parent 09b6994cda31f4dbc23bcb0834252987f6b67fb6 Changed event colouring to use the actual event summary. diff -r 09b6994cda31 -r fdf1ec151ab6 README.txt --- a/README.txt Wed Jan 06 00:06:56 2010 +0100 +++ b/README.txt Mon Jan 18 01:00:35 2010 +0100 @@ -157,6 +157,9 @@ * Changed the EventAggregatorNewEvent action to substitute only the stated title, not the full page title, into the new page. + * Changed event colouring to use the event summary as the basis for + calculating the colour used in the calendar. This means that related + events can be coloured identically if their summaries are the same. New in EventAggregator 0.4 (Changes since EventAggregator 0.3) -------------------------------------------------------------- diff -r 09b6994cda31 -r fdf1ec151ab6 macros/EventAggregator.py --- a/macros/EventAggregator.py Wed Jan 06 00:06:56 2010 +0100 +++ b/macros/EventAggregator.py Mon Jan 18 01:00:35 2010 +0100 @@ -636,7 +636,7 @@ # Generate a colour for the event. - bg = getColour(event_page.page_name) + bg = getColour(event_summary) fg = getBlackOrWhite(bg) style = ("background-color: rgb(%d, %d, %d); color: rgb(%d, %d, %d);" % (bg + fg))