summaryrefslogtreecommitdiff
path: root/backends/leap_backend.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-13 12:46:48 -0200
committerdrebs <drebs@leap.se>2013-02-13 12:46:48 -0200
commit82006e3b7e502b9fb4e45a00fdf332e4af5fc752 (patch)
tree5e1ce005cfd934c10b220623eb403ffe987c4493 /backends/leap_backend.py
parentecf568431319b4e81bc077141048d0b7f1e0964d (diff)
Add/fix doc for soledad modules.
Diffstat (limited to 'backends/leap_backend.py')
-rw-r--r--backends/leap_backend.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/backends/leap_backend.py b/backends/leap_backend.py
index c3c52ee6..571cd8ca 100644
--- a/backends/leap_backend.py
+++ b/backends/leap_backend.py
@@ -1,3 +1,8 @@
+"""
+A U1DB backend that encrypts data before sending to server and decrypts after
+receiving.
+"""
+
try:
import simplejson as json
except ImportError:
@@ -13,14 +18,23 @@ import uuid
class NoDefaultKey(Exception):
+ """
+ Exception to signal that there's no default OpenPGP key configured.
+ """
pass
class NoSoledadInstance(Exception):
+ """
+ Exception to signal that no Soledad instance was found.
+ """
pass
class DocumentEncryptionFailed(Exception):
+ """
+ Exception to signal the failure of document encryption.
+ """
pass