Fix Database().create_query() to actually initialize the Query with the correct object.
authorSebastian Spaeth <sebastian@sspaeth.de>
Mon, 22 Mar 2010 10:19:51 +0000 (11:19 +0100)
committerSebastian Spaeth <sebastian@sspaeth.de>
Mon, 22 Mar 2010 10:19:51 +0000 (11:19 +0100)
commit63c5a6d77d2b51104305e91676720099f4667e92
tree3158e3b4a13078324061a101e5e19a9e69225802
parentc3239d3eb47eeaa1ed96a3169c0effc4e68185de
Fix Database().create_query() to actually initialize the Query with the correct object.

We were passing the internal pointer to the notmuch_database_t object to Query(), but it should be initialized with the Database() object itself. This rightfully raised an exception. Yay, for thorough sanity checking.
cnotmuch/database.py