changeset 2753:94d4f531bcf6

fix reading of damaged event-log, fix some comments
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 23 Aug 2007 05:07:25 +0200
parents 7f6093028a66
children 907b9e60c232
files MoinMoin/script/migration/_conv160.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160.py	Wed Aug 22 13:51:26 2007 +0200
+++ b/MoinMoin/script/migration/_conv160.py	Thu Aug 23 05:07:25 2007 +0200
@@ -15,8 +15,8 @@
 
                    markup
        ----------------------------------------------------
-       old         MoinMoin:MainPage/Sub_Page    ../Sub_Page2
-       new         MoinMoin:"MainPage/Sub Page"  "../Sub Page2"???? (TODO check if this works)
+       old         MoinMoin:MainPage/Sub_Page      ../Sub_Page2
+       new         [[MoinMoin:MainPage/Sub Page]]  [[../Sub Page2]]
 
 
     b) decode url encoded chars in attachment names (and quote the whole fname):
@@ -24,7 +24,7 @@
                    markup
        ----------------------------------------------------
        old         attachment:file%20with%20blanks.txt
-       new         attachment:"file with blanks.txt"
+       new         [[attachment:file with blanks.txt]]
 
     c) users: move bookmarks from separate files into user profile
     d) users: generate new name[] for lists and name{} for dicts
@@ -96,7 +96,7 @@
                 if not line.strip(): # skip empty lines
                     continue
                 fields = line.split('\t')
-                timestamp, action, kvpairs = fields
+                timestamp, action, kvpairs = fields[:3]
                 timestamp = int(timestamp)
                 kvdict = wikiutil.parseQueryString(kvpairs)
                 data.append((timestamp, action, kvdict))