1.1 --- a/macros/EventAggregator.py Sat Mar 21 21:39:17 2009 +0100
1.2 +++ b/macros/EventAggregator.py Sat Mar 21 23:01:28 2009 +0100
1.3 @@ -157,8 +157,8 @@
1.4
1.5 events = []
1.6 shown_events = []
1.7 - earliest = calendar_start
1.8 - latest = calendar_end
1.9 + earliest = None
1.10 + latest = None
1.11
1.12 for category_name in category_names:
1.13
1.14 @@ -204,18 +204,21 @@
1.15
1.16 if mode == "calendar":
1.17
1.18 - end_year = latest[0]
1.19 + first = calendar_start or earliest
1.20 + last = calendar_end or latest
1.21
1.22 - for year in range(earliest[0], end_year + 1):
1.23 - if year < latest[0]:
1.24 + end_year = last[0]
1.25 +
1.26 + for year in range(first[0], end_year + 1):
1.27 + if year < last[0]:
1.28 end_month = 12
1.29 else:
1.30 - end_month = latest[1]
1.31 + end_month = last[1]
1.32
1.33 - if year > earliest[0]:
1.34 + if year > first[0]:
1.35 start_month = 1
1.36 else:
1.37 - start_month = earliest[1]
1.38 + start_month = first[1]
1.39
1.40 for month in range(start_month, end_month + 1):
1.41