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

SourceForge.net noreply at sourceforge.net
Sat Nov 6 15:53:38 EST 2004


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

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
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


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

>Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-11-07 00:47

Message:
Logged In: YES 
user_id=100649

fixed in beta4. thanks for the patch.

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

Comment By: Min Sik Kim (minskim)
Date: 2004-11-05 04:58

Message:
Logged In: YES 
user_id=30394

I forgot to mention that I was using 1.3beta3.

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

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