changeset 1915:ed85c389031d

xapian.Query needs to be imported
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 26 Mar 2007 18:52:21 +0200
parents eb68960b1dfb
children d41e6ef31c0e
files MoinMoin/search/Xapian.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian.py	Mon Mar 26 01:24:53 2007 +0200
+++ b/MoinMoin/search/Xapian.py	Mon Mar 26 18:52:21 2007 +0200
@@ -11,6 +11,7 @@
 import os, re
 
 import xapian
+from xapian import Query
 
 from MoinMoin.support.xapwrap import document as xapdoc
 from MoinMoin.support.xapwrap import index as xapidx
@@ -27,7 +28,7 @@
     Stemmer = None
 
 
-class UnicodeQuery(xapian.Query):
+class UnicodeQuery(Query):
     """ Xapian query object which automatically encodes unicode strings """
     def __init__(self, *args, **kwargs):
         """
@@ -43,7 +44,7 @@
                 term = [t.encode(self.encoding) for t in term]
             nargs.append(term)
 
-        xapian.Query.__init__(self, *nargs, **kwargs)
+        Query.__init__(self, *nargs, **kwargs)
 
 
 ##############################################################################