diff options
| author | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-17 11:45:13 +0100 |
|---|---|---|
| committer | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-17 11:45:13 +0100 |
| commit | 06f627df92b644a73c07096bed716d406d4f649d (patch) | |
| tree | 7f95671226d100adeebf216d9d0a211caa653400 /docs | |
| parent | b00c892c65ee57d6503b4bafe8fd666a6a274e47 (diff) | |
Improve source documentation
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/conf.py | 1 | ||||
| -rw-r--r-- | docs/source/index.rst | 35 |
2 files changed, 31 insertions, 5 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 4d8be533..ee22837f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -23,6 +23,7 @@ sys.path.append(os.path.abspath('../..')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo'] +autoclass_content = "both" # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/index.rst b/docs/source/index.rst index e48c345a..06f21422 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -31,13 +31,35 @@ or: :mod:`notmuch` -- The Notmuch interface ============================================= -Document from cnotmuch.globals import nmlib,STATUS,NotmuchError +Document from cnotmuch.globals import nmlib,STATUS :class:`Database` -- The underlying notmuch database ----------------------------------------------------- -.. autoclass:: Database - :members: +.. autoclass:: Database([path=None[, create=False[, mode=MODE.READ_ONLY]]]) + + .. automethod:: create + + .. automethod:: open(path, status=MODE.READ_ONLY) + + .. automethod:: get_path + + .. automethod:: find_message + + .. automethod:: get_all_tags + + + .. attribute:: Database.MODE + + Defines constants that are used as the mode in which to open a database. + + READ_ONLY + Open the database in read-only mode + + READ_WRITE + Open the database in read-write mode + + .. autoattribute:: db_p :class:`Query` -- Represents a notmuch Query ----------------------------------------------- @@ -45,8 +67,6 @@ Document from cnotmuch.globals import nmlib,STATUS,NotmuchError .. autoclass:: Query :members: - .. note:: A Thread is what a call to notmuch.show() will return, containing a bunch of :class:`Message`\ s. - :class:`Messages` -- A bunch of messages ---------------------------------------- @@ -76,6 +96,11 @@ Document from cnotmuch.globals import nmlib,STATUS,NotmuchError This execption inherits directly from :exc:`Exception` and is raised on errors during the notmuch execution. +:class:`STATUS` -- Notmuch operation return status +-------------------------------------------------- +.. autoclass:: STATUS + :members: + Indices and tables ================== |
