[ moin-Bugs-1060690 ] error in AbandonedPages
"SourceForge.net" <[email protected]> Thu, 04 Nov 2004 19:58:25 -0800
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1060690, was opened at 2004-11-04 21:56
Message generated for change (Comment added) made by minskim
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
----------------------------------------------------------------------
>Comment By: Min Sik Kim (minskim)
Date: 2004-11-04 21: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
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click