Browse files

xappy/searchconnection.py: Ensure that queries actually are

connected to the SearchConnection that they're returned from.

git-svn-id: http://xappy.googlecode.com/svn/trunk@588 eff16abe-6239-0410-8a55-6f1cd6cf4f8f
  • Loading branch information...
1 parent ad51924 commit af31d84b4dc35ec10caef48cfea767cfff57f71e boulton.rj committed Jan 21, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1 xappy/searchconnection.py
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Thu Jan 21 15:32:59 GMT 2010 Richard Boulton <richard@tartarus.org>
+
+ * xappy/searchconnection.py: Ensure that queries actually are
+ connected to the SearchConnection that they're returned from.
+
Thu Jan 21 15:32:06 GMT 2010 Richard Boulton <richard@tartarus.org>
* xappy/unittests/query_serialise.py: Test that empty queries are
View
2 xappy/searchconnection.py
@@ -1694,7 +1694,7 @@ def query_from_evalable(self, serialised):
import xappy
vars = {'conn': self, 'xappy': xappy, 'xapian': xapian,
'Query': xappy.Query}
- return eval(serialised, vars)
+ return xappy.Query(eval(serialised, vars), _conn=self)
def spell_correct(self, querystr, allow=None, deny=None, default_op=OP_AND,
default_allow=None, default_deny=None,

0 comments on commit af31d84

Please sign in to comment.