From bd677371618e3fe3d8e8b91ab7cab6663152f18c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 28 Mar 2017 19:55:20 -0300 Subject: [docs] improve docstrings and comments from review --- server/src/leap/soledad/server/_blobs.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'server/src/leap') 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) -- cgit v1.2.3