changeset 4470:21a95ba01a42

Fix search for xapian 1.2 issue2550676.
author Bernhard Reiter <Bernhard.Reiter@intevation.de>
date Sat, 26 Feb 2011 20:57:11 +0000
parents 90aae2faac72
children 4f353d71d716
files CHANGES.txt roundup/backends/indexer_xapian.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Mon Jan 10 16:04:09 2011 +0000
+++ b/CHANGES.txt	Sat Feb 26 20:57:11 2011 +0000
@@ -29,6 +29,8 @@
   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,
--- a/roundup/backends/indexer_xapian.py	Mon Jan 10 16:04:09 2011 +0000
+++ b/roundup/backends/indexer_xapian.py	Sat Feb 26 20:57:11 2011 +0000
@@ -122,6 +122,6 @@
         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]
 

Roundup Issue Tracker: http://roundup-tracker.org/