From: ber Date: Sat, 26 Feb 2011 20:57:11 +0000 (+0000) Subject: Fix search for xapian 1.2 issue2550676. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c68ba64226b55817af239e1c5b1fbc316caf6eb6;p=roundup.git 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 --- 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]