changeset 814:cc933a874037

add QObjQuery to xapwrap to support our parsed query input
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sat, 10 Jun 2006 00:14:06 +0200
parents e5f79524f75d
children 150bf5552d18
files MoinMoin/support/xapwrap/index.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/support/xapwrap/index.py	Sat Jun 10 00:11:53 2006 +0200
+++ b/MoinMoin/support/xapwrap/index.py	Sat Jun 10 00:14:06 2006 +0200
@@ -878,6 +878,13 @@
     def prepare(self, queryParser):
         return xapian.Query(self.queryString)
 
+class QObjQuery(Query):
+    def __init__(self, query):
+        assert isinstance(query, xapian.Query)
+        self.query = query
+
+    def prepare(self, queryParser):
+        return self.query
 
 class SmartIndex(Index):
     documentFactory = Document