1.1 --- a/actions/EventAggregatorSummary.py Sat Apr 04 23:27:16 2009 +0200
1.2 +++ b/actions/EventAggregatorSummary.py Sat Apr 04 23:40:48 2009 +0200
1.3 @@ -177,7 +177,9 @@
1.4
1.5 # Define the last modified time.
1.6
1.7 - headers.append("Last-Modified: %s" % EventAggregatorSupport.getHTTPTimeString(latest_timestamp))
1.8 + if latest_timestamp is not None:
1.9 + headers.append("Last-Modified: %s" % EventAggregatorSupport.getHTTPTimeString(latest_timestamp))
1.10 +
1.11 send_headers(headers)
1.12
1.13 # iCalendar output...
1.14 @@ -192,7 +194,7 @@
1.15 # Get the summary details.
1.16
1.17 event_summary = EventAggregatorSupport.getEventSummary(event_page, event_details)
1.18 - link = request.getQualifiedURL(event_page.url(request, relative=0))
1.19 + link = EventAggregatorSupport.getPageURL(request, event_page)
1.20
1.21 # Output the event details.
1.22
1.23 @@ -232,7 +234,7 @@
1.24 # Get the summary details.
1.25
1.26 event_summary = EventAggregatorSupport.getEventSummary(event_page, event_details)
1.27 - link = request.getQualifiedURL(event_page.url(request, relative=0))
1.28 + link = EventAggregatorSupport.getPageURL(request, event_page)
1.29
1.30 request.write('<item>\r\n')
1.31 request.write('<title>%s</title>\r\n' % wikiutil.escape(event_summary))