1.1 --- a/EventAggregatorSupport.py Tue Mar 24 01:05:50 2009 +0100
1.2 +++ b/EventAggregatorSupport.py Tue Mar 24 01:21:36 2009 +0100
1.3 @@ -247,6 +247,11 @@
1.4 month of an event within the window of interest.
1.5 """
1.6
1.7 + # Re-order the window, if appropriate.
1.8 +
1.9 + if calendar_start is not None and calendar_end is not None and calendar_start > calendar_end:
1.10 + calendar_start, calendar_end = calendar_end, calendar_start
1.11 +
1.12 events = []
1.13 shown_events = {}
1.14 all_shown_events = []
2.1 --- a/macros/EventAggregator.py Tue Mar 24 01:05:50 2009 +0100
2.2 +++ b/macros/EventAggregator.py Tue Mar 24 01:21:36 2009 +0100
2.3 @@ -145,6 +145,11 @@
2.4 calendar_start = new_calendar_start
2.5 calendar_end = new_calendar_end
2.6
2.7 + # Insist on a span in order to ensure start and end months.
2.8 +
2.9 + if span is None:
2.10 + span = 1
2.11 +
2.12 # Calculate the window of interest.
2.13
2.14 if span is not None: