changeset 1017:ab22ceb57151

fix import19 for router backend returning mountpoint, revid tuples
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 30 Oct 2011 17:59:17 -0200
parents f9f1170c273e
children 5f93a84e125f
files MoinMoin/script/migration/moin19/import19.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/moin19/import19.py	Sun Oct 30 02:36:24 2011 -0200
+++ b/MoinMoin/script/migration/moin19/import19.py	Sun Oct 30 17:59:17 2011 -0200
@@ -91,8 +91,8 @@
 
         print "Fix userids..."
         userid_map = dict([(rev.meta[UID_OLD], rev.meta[ITEMID]) for rev in indexer.documents(contenttype=CONTENTTYPE_USER)])
-        for revid in backend:
-            meta, data = backend.retrieve(revid)
+        for mountpoint, revid in backend:
+            meta, data = backend.retrieve(mountpoint, revid)
             if USERID in meta:
                 try:
                     meta[USERID] = userid_map[meta[USERID]]