From c68ba64226b55817af239e1c5b1fbc316caf6eb6 Mon Sep 17 00:00:00 2001 From: ber Date: Sat, 26 Feb 2011 20:57:11 +0000 Subject: [PATCH] Fix search for xapian 1.2 issue2550676. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4579 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 2 ++ roundup/backends/indexer_xapian.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index ce36fc4..67b6702 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,8 @@ Fixed: doesn't have access to a property but can deduce the content by crafting a clever search, group or sort query. see doc/upgrading.txt for how to fix your trackers! (Ralf Schlatterbeck). +- Fix search for xapian 1.2 issue2550676 + (Bernhard Reiter; Thanks to Olly Betts for providing the patch.) - Some minor typos fixed in doc/customizing.txt (Thanks Ralf Hemmecke). - XML-RPC documentation now linked from the docs/index (Bernhard Reiter). - Fix setting of sys.path when importing schema.py, fixes issue2550675, diff --git a/roundup/backends/indexer_xapian.py b/roundup/backends/indexer_xapian.py index 385bcae..4116b1c 100644 --- a/roundup/backends/indexer_xapian.py +++ b/roundup/backends/indexer_xapian.py @@ -122,6 +122,6 @@ class Indexer(IndexerBase): enquire.set_query(query) matches = enquire.get_mset(0, 10) - return [tuple(m[xapian.MSET_DOCUMENT].get_data().split(':')) + return [tuple(m.document.get_data().split(':')) for m in matches] -- 2.30.2