changeset 887:f51d1619c549 storage-ng

fix moin index-dump
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Sep 2011 02:46:16 +0200
parents 45f7e5319dcd
children 2db836239438
files MoinMoin/script/maint/index.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/index.py	Mon Sep 26 02:38:29 2011 +0200
+++ b/MoinMoin/script/maint/index.py	Mon Sep 26 02:46:16 2011 +0200
@@ -99,9 +99,10 @@
     ]
 
     def run(self, tmp):
-        for indexname in [LATEST_REVS, ALL_REVS, ]:
+        for all_revs in [False, True]:
+            indexname = all_revs and "all revs index" or "latest revs index"
             print " %s %s %s" % ("-" * 10, indexname, "-" * 60)
-            for kvs in app.storage.dump(tmp=tmp, indexname=indexname):
+            for kvs in app.storage.dump(tmp=tmp, all_revs=all_revs):
                 for k, v in kvs:
                     print k, repr(v)[:70]
                 print