aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-05-23 22:48:16 -0300
committerGravatar David Bremner <bremner@debian.org>2012-05-23 22:48:16 -0300
commit6d44c5af6568d2a559c163ace14d27cc7e2ba1bc (patch)
treef8d8290136c602190b8712f3c0e4a7030b7793c7 /bindings/python
parent4c526fe3515e65ddf7ca69bf7bbc0823b4e801a0 (diff)
parentd9f61c26a1344b123c1812392bc39c32634a099a (diff)
Merge branch 'release'
merge 0.13.1 bugfix patches back to master, fixes for emacs reply and spurious directory document creation.
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/notmuch/database.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py
index ee0366cd..5931f41b 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -347,7 +347,6 @@ class Database(object):
def get_directory(self, path):
"""Returns a :class:`Directory` of path,
- (creating it if it does not exist(?))
:param path: An unicode string containing the path relative to the path
of database (see :meth:`get_path`), or else should be an absolute
@@ -355,8 +354,6 @@ class Database(object):
:returns: :class:`Directory` or raises an exception.
:raises: :exc:`FileError` if path is not relative database or absolute
with initial components same as database.
- :raises: :exc:`ReadOnlyDatabaseError` if the database has not been
- opened in read-write mode
"""
self._assert_db_is_initialized()
@@ -530,19 +527,10 @@ class Database(object):
retry.
:raises: :exc:`NotInitializedError` if the database was not
intitialized.
- :raises: :exc:`ReadOnlyDatabaseError` if the database has not been
- opened in read-write mode
*Added in notmuch 0.9*"""
self._assert_db_is_initialized()
- # work around libnotmuch calling exit(3), see
- # id:20120221002921.8534.57091@thinkbox.jade-hamburg.de
- # TODO: remove once this issue is resolved
- if self.mode != Database.MODE.READ_WRITE:
- raise ReadOnlyDatabaseError('The database has to be opened in '
- 'read-write mode for get_directory')
-
msg_p = NotmuchMessageP()
status = Database._find_message_by_filename(self._db, _str(filename),
byref(msg_p))