changeset 906:e1c76814a37d storage-ng

fix similar_items
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Sep 2011 17:09:08 +0200
parents 51475954290f
children b090aadcc7fb
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	Fri Sep 30 16:44:50 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Fri Sep 30 17:09:08 2011 +0200
@@ -1593,7 +1593,7 @@
     :rtype: tuple
     :returns: start word, end word, matches dict
     """
-    item_names = [doc[NAME] for doc in flaskg.storage.documents(all_revs=False, wikiname=app.cfg.interwikiname)]
+    item_names = [rev.meta[NAME] for rev 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