# HG changeset patch # User Paul Boddie # Date 1238347149 -7200 # Node ID c74ce0a32ccf4334f4f0fe2a2da00270a48e7a0d # Parent cca0278232ac754b8e2ac49914e05f8682345271 Fixed numeric output when search keyword parameters appear in the URL, causing formatter errors. Added notes about alternative date representations in event descriptions. diff -r cca0278232ac -r c74ce0a32ccf macros/EventAggregator.py --- a/macros/EventAggregator.py Sat Mar 28 01:11:39 2009 +0100 +++ b/macros/EventAggregator.py Sun Mar 29 19:19:09 2009 +0200 @@ -218,7 +218,7 @@ output.append(fmt.span(on=0)) output.append(fmt.text(" ")) output.append(fmt.span(on=1)) - output.append(fmt.text(year)) + output.append(fmt.text(unicode(year))) output.append(fmt.span(on=0)) output.append(fmt.table_cell(on=0)) @@ -281,7 +281,7 @@ output.append(fmt.div(on=1)) output.append(fmt.span(on=1, css_class="event-day-number")) - output.append(fmt.text(day)) + output.append(fmt.text(unicode(day))) output.append(fmt.span(on=0)) output.append(fmt.div(on=0)) @@ -413,7 +413,7 @@ output.append(fmt.span(on=0)) output.append(fmt.text(" ")) output.append(fmt.span(on=1)) - output.append(fmt.text(year)) + output.append(fmt.text(unicode(year))) output.append(fmt.span(on=0)) output.append(fmt.div(on=0)) @@ -438,7 +438,7 @@ output.append(fmt.text(key)) output.append(fmt.definition_term(on=0)) output.append(fmt.definition_desc(on=1)) - output.append(fmt.text(value)) + output.append(fmt.text(unicode(value))) output.append(fmt.definition_desc(on=0)) output.append(fmt.definition_list(on=0)) diff -r cca0278232ac -r c74ce0a32ccf pages/HelpOnEventAggregator --- a/pages/HelpOnEventAggregator Sat Mar 28 01:11:39 2009 +0100 +++ b/pages/HelpOnEventAggregator Sun Mar 29 19:19:09 2009 +0200 @@ -24,6 +24,15 @@ End:: 2009-07-04 }}} +You can add text which is more readable for humans provided that the `YYYY-MM-DD` format values are present somewhere in each entry. For example: + +{{{ + Start:: Sunday 28th June 2009 (2009-06-28) + End:: Saturday 4th July 2009 (2009-07-04) +}}} + +Obviously, duplicating the date information introduces a risk of this information becoming inconsistent, so beware! + == Showing Event Calendars == To show a calendar, use the !EventAggregator macro with a list of event categories. For example: