1.1 --- a/EventAggregatorSupport.py Sat Mar 06 22:51:27 2010 +0100
1.2 +++ b/EventAggregatorSupport.py Thu Mar 11 23:43:19 2010 +0100
1.3 @@ -132,9 +132,17 @@
1.4 else:
1.5 line = page._last_edited(page.request) # MoinMoin 1.5.x and 1.6.x
1.6
1.7 - timestamp = line.ed_time_usecs
1.8 - mtime = wikiutil.version2timestamp(long(timestamp)) # must be long for py 2.2.x
1.9 - return {"timestamp" : time.gmtime(mtime), "comment" : line.comment}
1.10 + # Similar to Page.mtime_usecs behaviour...
1.11 +
1.12 + if line:
1.13 + timestamp = line.ed_time_usecs
1.14 + mtime = wikiutil.version2timestamp(long(timestamp)) # must be long for py 2.2.x
1.15 + comment = line.comment
1.16 + else:
1.17 + mtime = 0
1.18 + comment = ""
1.19 +
1.20 + return {"timestamp" : time.gmtime(mtime), "comment" : comment}
1.21
1.22 # Category discovery and searching.
1.23