changeset 885:ba8c41979a44 storage-ng

dump method of indexing middleware should take all_revs as arg as well
author Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
date Sun, 25 Sep 2011 18:25:26 +0200
parents 6362eb610f9f
children 45f7e5319dcd
files MoinMoin/storage/middleware/indexing.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/indexing.py	Sun Sep 25 18:24:56 2011 +0200
+++ b/MoinMoin/storage/middleware/indexing.py	Sun Sep 25 18:25:26 2011 +0200
@@ -473,11 +473,12 @@
         name = ALL_REVS if all_revs else LATEST_REVS
         return self.ix[name]
 
-    def dump(self, tmp=False, indexname=LATEST_REVS):
+    def dump(self, tmp=False, all_revs=False):
         """
         Yield key/value tuple lists for all documents in the indexes, fields sorted.
         """
         index_dir = self.index_dir_tmp if tmp else self.index_dir
+        indexname = ALL_REVS if all_revs else LATEST_REVS
         ix = open_dir(index_dir, indexname=indexname)
         with ix.searcher() as searcher:
             for doc in searcher.all_stored_fields():