changeset 907:b090aadcc7fb storage-ng

fix backlinks
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Sep 2011 17:25:35 +0200
parents e1c76814a37d
children a31e0d2f542d
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Fri Sep 30 17:09:08 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Fri Sep 30 17:25:35 2011 +0200
@@ -697,8 +697,8 @@
     """
     q = And([Term(WIKINAME, app.cfg.interwikiname),
              Or([Term(ITEMTRANSCLUSIONS, item_name), Term(ITEMLINKS, item_name)])])
-    docs = flaskg.storage.get_index(all_revs=False).search(q)
-    return [doc[NAME] for doc in docs]
+    revs = flaskg.storage.search(q, all_revs=False)
+    return [rev.meta[NAME] for rev in revs]
 
 
 @frontend.route('/+history/<itemname:item_name>')