changeset 798:468607d20932 pytest2

whooshify similar_names
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 29 Aug 2011 15:44:06 +0200
parents 31aff629ed47
children 43f5e5aa061a
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Mon Aug 29 15:38:52 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Mon Aug 29 15:44:06 2011 +0200
@@ -1598,7 +1598,7 @@
     :rtype: tuple
     :returns: start word, end word, matches dict
     """
-    item_names = [item.name for item in flaskg.storage.iteritems()]
+    item_names = [doc[NAME] for doc in flaskg.storage.documents(all_revs=False, wikiname=app.cfg.interwikiname)]
     if item_name in item_names:
         item_names.remove(item_name)
     # Get matches using wiki way, start and end of word