summaryrefslogtreecommitdiff
path: root/client/src/leap
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-03-23 20:33:20 -0300
committerdrebs <drebs@leap.se>2017-04-04 18:27:38 +0200
commit26a65d100f91883027c17c219d018461968eda65 (patch)
tree1c2cdb4a8438aa730f4ac064cfe15ebf843e0740 /client/src/leap
parent45b73d58930a2a66394a6797c94a50c34e8f96e7 (diff)
[feature] add blobs listing
Diffstat (limited to 'client/src/leap')
-rw-r--r--client/src/leap/soledad/client/_blobs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/_blobs.py b/client/src/leap/soledad/client/_blobs.py
index 7ecd4a4d..f9f1515b 100644
--- a/client/src/leap/soledad/client/_blobs.py
+++ b/client/src/leap/soledad/client/_blobs.py
@@ -158,6 +158,12 @@ class BlobManager(object):
return self.local.close()
@defer.inlineCallbacks
+ def list(self):
+ uri = urljoin(self.remote, self.user + '/')
+ data = yield self._client.get(uri)
+ defer.returnValue((yield data.json()))
+
+ @defer.inlineCallbacks
def put(self, doc, size):
fd = doc.blob_fd
# TODO this is a tee really, but ok... could do db and upload