summaryrefslogtreecommitdiff
path: root/bindings/python
AgeCommit message (Collapse)Author
2012-04-29python: update the long description in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: fix the test asserting that reading the version succeededJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: simplify a path expression in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: Remove unused import from setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-28python: wrap and use notmuch_database_destroy as destructorJustus Winter
Adapt the python bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-03-19update version to 0.12David Bremner
There may be a few NEWS changes after this, but no code (hopefully).
2012-03-18bump version to 0.12~rc2David Bremner
2012-03-18python: fix signature of two wrapped libnotmuch functionsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-03-01bump version to 0.12~rc1David Bremner
As usual, only `version' is edited by hand. The rest of the changes I blame on the machine.
2012-02-24python: split the documentationJustus Winter
Move each classes documentation into its own file and thus into its own page in the generated documentation. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-24python: move the notmuch module section to notes.rstJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-24python: move the usage example to quickstart.rstJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-24python: strip module prefix in the sphinx documentationJustus Winter
Remove the notmuch prefix from classes in the documentation. This change makes the table of contents look much nicer. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-23python: mention the exception class refactoring in the docsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-23python: move the exception classes into error.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: rename filename.py into filenames.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: move Threads class into its own fileJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: move Messages class into its own fileJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: refactor the python bindingsJustus Winter
Move the Directory class into its own file, merge the two Filenames classes into one, deprecate Filenames.as_iterator, update the documentation accordingly. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: work around libnotmuch calling exit(3) in Database.find_message_by_filenameJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: improve the docstring of Database.find_message_by_filenameJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: work around libnotmuch calling exit(3) in Database.get_directoryJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: Improve the docstring of Database.get_directoryJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-22python: avoid using a magic value for database mode in Database.__init__Justus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-21python: fix the type nonsense of the first parameter of class DirectoryJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-21python: allow an empty path as parameter to Database.get_directoryJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-21python: remove :returns: keywords from functions returning nothingJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-21python: rework Directory.set_mtimeJustus Winter
Fix the indentation within the docstring, remove useless remarks, do some trivial refactoring. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-21python: harmonize the sphinx keyword for exceptionsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-20python: refactor the error handling machineryJustus Winter
Raise specific error classes instead of a generic NotmuchError with an magic status value (e.g. NotmuchError(STATUS.NULL_POINTER) -> NullPointerError()), update the documentation accordingly. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-20python: fix the projects name and update years of the copyright notice in the sphinx docsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-19python: more error handling fixesJustus Winter
This is a follow up commit to 221c7e0b38177f5f1dbf0561580c15e8aaa49004 fixing more NULL pointer checks. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: remove trailing whitespace within the documentation source filesJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: improve Query.count_messages docstringJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: wrap notmuch_query_count_threads as Query.count_threadsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: refactor Query classJustus Winter
Put each libnotmuch function reference right in front of the corresponding python wrapper. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: move Query class to its own fileJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: remove unused but imported symbolJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-18python: remove unused but imported symbolJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-15python: implement the context manager protocol for database objectsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-15python: provide a Database.close functionJustus Winter
Rename Database.__del__ to Database.close, move it just below the open function and call close() in a newly created destructor just below the constructor. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-10py3k: Fix decoding of default database name in Database._get_user_default_dbJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-10python: mock out the ctypes libraryJustus Winter
This allows rtfd.org to build the documentation without libnotmuch. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-10python: Add a Mock class to the sphinx config that can be used to mock modulesJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-02-04Merge commit '0.11.1'David Bremner
Conflicts: NEWS bindings/python/notmuch/database.py bindings/python/notmuch/message.py notmuch.1 NEWS merged by hand, others taken from master.
2012-02-03version: bump to 0.11.1David Bremner
also semi-automatically update man page and python bindings versions.
2012-01-23python: fix error handlingJustus Winter
Before 3434d1940 the return values of libnotmuch functions were declared as c_void_p and the code checking for errors compared the returned value to None, which is the ctypes equivalent of a NULL pointer. But said commit wrapped all the data types in python classes and the semantic changed in a subtle way. If a function returns NULL, the wrapped python value is falsish, but no longer equal to None. Backported from master to 0.11.
2012-01-22python: fix error handlingJustus Winter
Before 3434d1940 the return values of libnotmuch functions were declared as c_void_p and the code checking for errors compared the returned value to None, which is the ctypes equivalent of a NULL pointer. But said commit wrapped all the data types in python classes and the semantic changed in a subtle way. If a function returns NULL, the wrapped python value is falsish, but no longer equal to None.
2012-01-16py3k: add a specialized version of _str for python3Justus Winter
All strings are unicode strings in python 3 and the basestring and unicode types are removed hence the need for a specialized version. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-01-13Merge branch 'release'David Bremner
Conflicts: notmuch-reply.c notmuch.1