# HG changeset patch # User Paul Boddie # Date 1268347399 -3600 # Node ID b673e8f9c634180341132c47b503beee194d5e43 # Parent 5929e8a9b8dd81535ae162b4b1ee70d0dd7f6ec4 Fixed the case where a page might not provide edit log information, perhaps having been created by the eventfeed script. diff -r 5929e8a9b8dd -r b673e8f9c634 EventAggregatorSupport.py --- a/EventAggregatorSupport.py Sat Mar 06 22:51:27 2010 +0100 +++ b/EventAggregatorSupport.py Thu Mar 11 23:43:19 2010 +0100 @@ -132,9 +132,17 @@ else: line = page._last_edited(page.request) # MoinMoin 1.5.x and 1.6.x - timestamp = line.ed_time_usecs - mtime = wikiutil.version2timestamp(long(timestamp)) # must be long for py 2.2.x - return {"timestamp" : time.gmtime(mtime), "comment" : line.comment} + # Similar to Page.mtime_usecs behaviour... + + if line: + timestamp = line.ed_time_usecs + mtime = wikiutil.version2timestamp(long(timestamp)) # must be long for py 2.2.x + comment = line.comment + else: + mtime = 0 + comment = "" + + return {"timestamp" : time.gmtime(mtime), "comment" : comment} # Category discovery and searching. diff -r 5929e8a9b8dd -r b673e8f9c634 README.txt --- a/README.txt Sat Mar 06 22:51:27 2010 +0100 +++ b/README.txt Thu Mar 11 23:43:19 2010 +0100 @@ -220,6 +220,8 @@ * Added a script to import events from RSS feeds. * Added support for a link entry in event pages, although this does not replace the link information provided by the RSS and iCalendar summaries. + * Fixed the production of the summaries when pages with no available edit + log information are to be included. New in EventAggregator 0.5 (Changes since EventAggregator 0.4) --------------------------------------------------------------