# HG changeset patch # User Paul Boddie # Date 1278548232 -7200 # Node ID 0cdb1291501e45fee42802a99b2bf17623a02d04 # Parent 523d3d70da00110283c2b3853e5203ed1f8498a7 Fixed docstring. Permit the generation of empty calendar feeds. diff -r 523d3d70da00 -r 0cdb1291501e EventAggregatorSupport.py --- a/EventAggregatorSupport.py Thu Jun 10 01:33:09 2010 +0200 +++ b/EventAggregatorSupport.py Thu Jul 08 02:17:12 2010 +0200 @@ -706,7 +706,7 @@ Using 'request', set timestamp details in the details dictionary of each of the 'events'. - Retutn the latest timestamp found. + Return the latest timestamp found. """ latest = None diff -r 523d3d70da00 -r 0cdb1291501e actions/EventAggregatorSummary.py --- a/actions/EventAggregatorSummary.py Thu Jun 10 01:33:09 2010 +0200 +++ b/actions/EventAggregatorSummary.py Thu Jul 08 02:17:12 2010 +0200 @@ -294,7 +294,9 @@ request.write('%s\r\n' % path_info[1:]) request.write('%s%s\r\n' % (request.getBaseURL(), path_info)) request.write('Events published on %s%s\r\n' % (request.getBaseURL(), path_info)) - request.write('%s\r\n' % EventAggregatorSupport.getHTTPTimeString(latest_timestamp)) + + if latest_timestamp is not None: + request.write('%s\r\n' % EventAggregatorSupport.getHTTPTimeString(latest_timestamp)) # Sort all_shown_events by start date, reversed: #