notmuch/bindings/python-cffi/notmuch2
David Bremner d7f9572413 python-cffi: switch to notmuch_database_{open,create}_with_config
Since release 0.32, libnotmuch provides searching for database and
configuration paths. This commit changes the python module notmuch2 to
use those facilities.

This fixes the bug reported in [1], along with a couple of the
deprecation warnings in the python bindings.

Database.default_path is deprecated, since it no longer faithfully
reflects what libnotmuch is doing, and it is also no longer used in
the bindings themselves.

This commit choose the default of config=CONFIG.EMPTY (equivalent to
passing "" to notmuch_database_open_with_config).  This makes the
change upward compatible API-wise (at least as far as the test suite
verifies), but changing the default to CONFIG.SEARCH would probably be
more convenient for bindings users.

[1]: id:87h7d4wp6b.fsf@tethera.net
2021-12-04 08:42:31 -04:00
..
__init__.py Fix typos 2020-08-09 21:14:36 -03:00
_base.py Fix typos 2020-08-09 21:14:36 -03:00
_build.py python-cffi: switch to notmuch_database_{open,create}_with_config 2021-12-04 08:42:31 -04:00
_config.py python config access: fix style and KeyError bug 2020-06-15 21:50:03 -03:00
_database.py python-cffi: switch to notmuch_database_{open,create}_with_config 2021-12-04 08:42:31 -04:00
_errors.py lib: add new status code for query syntax errors. 2021-09-04 17:07:19 -07:00
_message.py Fix typos 2020-08-09 21:14:36 -03:00
_query.py Rename package to notmuch2 2019-12-03 08:12:30 -04:00
_tags.py Fix typos 2020-08-09 21:14:36 -03:00
_thread.py Make messages returned by Thread objects owned 2020-06-16 08:02:02 -03:00