diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-03-28 19:55:20 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-04 18:27:39 +0200 |
commit | bd677371618e3fe3d8e8b91ab7cab6663152f18c (patch) | |
tree | 70ead2fc58383166f7348a21d125850cb3844b02 /server | |
parent | d7d830a6a83572eea4620089e6600c23179c2ca4 (diff) |
[docs] improve docstrings and comments from review
Diffstat (limited to 'server')
-rw-r--r-- | server/src/leap/soledad/server/_blobs.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/src/leap/soledad/server/_blobs.py b/server/src/leap/soledad/server/_blobs.py index 3eac536e..78b3bddf 100644 --- a/server/src/leap/soledad/server/_blobs.py +++ b/server/src/leap/soledad/server/_blobs.py @@ -75,7 +75,7 @@ class IBlobsBackend(Interface): def tag_header(user, blob_id, request): """ - Adds a header 'Tag' with the last 20 bytes of the encoded file, + Adds a header 'Tag' with the last 16 bytes of the encoded file, which contains the tag. :returns: a deferred that fires upon finishing. @@ -183,12 +183,7 @@ class BlobsResource(resource.Resource): blobsFactoryClass = FilesystemBlobsBackend def __init__(self, blobs_path): - # TODO pass the backend as configurable option - """ - __init__(self, backend, opts={}) - factorykls = getattr(self, backend + 'Class')(**opts) - self._handler = kls() - """ + # TODO pass the backend as configurable option #8804 resource.Resource.__init__(self) self._blobs_path = blobs_path self._handler = self.blobsFactoryClass(blobs_path) |