changeset 886:45f7e5319dcd storage-ng

merged ronny's repo
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 26 Sep 2011 02:38:29 +0200
parents 70bd8a85eee5 (current diff) ba8c41979a44 (diff)
children f51d1619c549
files MoinMoin/storage/middleware/indexing.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Mon Sep 26 02:28:45 2011 +0200
+++ b/.hgignore	Mon Sep 26 02:38:29 2011 +0200
@@ -1,6 +1,7 @@
 .*\.py[co]$
 ^dist/
 ^env/
+^dlc/
 ^moin.egg-info/
 ^MoinMoin/_tests/wiki/data/cache/
 ^wiki/data/cache/
--- a/MoinMoin/storage/middleware/indexing.py	Mon Sep 26 02:28:45 2011 +0200
+++ b/MoinMoin/storage/middleware/indexing.py	Mon Sep 26 02:38:29 2011 +0200
@@ -471,11 +471,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():