Commits

Thomas Waldmann committed ab22ceb

fix import19 for router backend returning mountpoint, revid tuples

Comments (0)

Files changed (1)

MoinMoin/script/migration/moin19/import19.py

 
         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]]