From f4ada0de252a44c21125811d19ab0d4d341381a3 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 13 Jul 2017 02:14:06 -0300 Subject: [feature] make DELETE support namespaces on client Using a parameter, just like the other methods are doing. -- Resolves: #8873 --- src/leap/soledad/client/_db/blobs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py index f693ec20..bd718f18 100644 --- a/src/leap/soledad/client/_db/blobs.py +++ b/src/leap/soledad/client/_db/blobs.py @@ -307,16 +307,16 @@ class BlobManager(object): defer.returnValue((fd, size)) @defer.inlineCallbacks - def delete(self, blob_id): + def delete(self, blob_id, **params): logger.info("Staring deletion of blob: %s" % blob_id) - yield self._delete_from_remote(blob_id) + yield self._delete_from_remote(blob_id, **params) if (yield self.local.exists(blob_id)): yield self.local.delete(blob_id) - def _delete_from_remote(self, blob_id): + def _delete_from_remote(self, blob_id, **params): # TODO this needs to be connected in a tube uri = urljoin(self.remote, self.user + '/' + blob_id) - return self._client.delete(uri) + return self._client.delete(uri, params=params) class SQLiteBlobBackend(object): -- cgit v1.2.3