diff MoinMoin/items/__init__.py @ 953:326f7a365007

search/indexing: remove all_revs=False params (it is the default)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 09 Oct 2011 21:10:52 +0200
parents 5b7e522d97af
children b48e18209f1a
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Oct 09 19:14:56 2011 +0200
+++ b/MoinMoin/items/__init__.py	Sun Oct 09 21:10:52 2011 +0200
@@ -530,7 +530,7 @@
             query = Term(WIKINAME, app.cfg.interwikiname)
         # We only want the sub-item part of the item names, not the whole item objects.
         prefix_len = len(prefix)
-        revs = flaskg.storage.search(query, all_revs=False, sortedby=NAME_EXACT, limit=None)
+        revs = flaskg.storage.search(query, sortedby=NAME_EXACT, limit=None)
         items = [(rev.meta[NAME], rev.meta[NAME][prefix_len:], rev.meta[CONTENTTYPE])
                  for rev in revs]
         return items
@@ -672,7 +672,7 @@
         if contenttype is not None:
             terms.append(Term(CONTENTTYPE, contenttype))
         query = And(terms)
-        revs = flaskg.storage.search(query, all_revs=False, sortedby=NAME_EXACT, limit=None)
+        revs = flaskg.storage.search(query, sortedby=NAME_EXACT, limit=None)
         return [rev.meta[NAME] for rev in revs]
 
     def do_modify(self, contenttype, template_name):