[Moin-devel] [ moin-Bugs-1060690 ] error in AbandonedPages

SourceForge.net noreply at sourceforge.net
Thu Nov 4 20:07:30 EST 2004


Bugs item #1060690, was opened at 2004-11-04 21:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=1060690&group_id=8482

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Min Sik Kim (minskim)
Assigned to: Nobody/Anonymous (nobody)
Summary: error in AbandonedPages

Initial Comment:
When displaying AbandonedPages of a newly installed
wiki, MoinMoin shows an error on array index because
last_edits in RecentChanges.py is empty.  A workaround
is as follows.

--- RecentChanges.py	(revision 3)
+++ RecentChanges.py	(working copy)
@@ -177,12 +177,13 @@
     index = 0
     last_index = 0
     day_count = 0
-    
-    line = last_edits[index]
-    line.time_tuple =
request.user.getTime(wikiutil.version2timestamp(line.ed_time_usecs))
-    this_day = line.time_tuple[0:3]
-    day = this_day
 
+    if length > 0:
+        line = last_edits[index]
+        line.time_tuple =
request.user.getTime(wikiutil.version2timestamp(line.ed_time_usecs))
+        this_day = line.time_tuple[0:3]
+        day = this_day
+
     while 1:
 
         index += 1


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=1060690&group_id=8482




More information about the Moin-devel mailing list