#65 error in AbandonedPages

closed-fixed
nobody
None
5
2004-11-06
2004-11-05
Min Sik Kim
No

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

Discussion

  • Min Sik Kim
    Min Sik Kim
    2004-11-05

    Logged In: YES
    user_id=30394

    I forgot to mention that I was using 1.3beta3.

     
  • Logged In: YES
    user_id=100649

    fixed in beta4. thanks for the patch.

     
    • status: open --> closed-fixed