Created
October 21, 2009 20:12
-
-
Save notanumber/215424 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_query(self): | |
values = [] | |
return final_query | |
for child in self.query_filter.children: | |
if isinstance(child, self.query_filter.__class__): | |
print 'SQ: ', child # TODO: Recursive call down tree... | |
else: | |
expression, value = child | |
field, filter_type = self.query_filter.split_expression(expression) | |
values.append(value) | |
return xapian.Query(xapian.Query.OP_AND, values) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment