diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-11-27 09:34:41 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-12-01 01:38:08 -0300 |
commit | 0772476f1759f2f0d490748047881f503e38c28c (patch) | |
tree | c7429a7bd7dd18254d168a7022ffcec6d7a21c8a /src | |
parent | ae93f05a6aea7970ef7f89bb851450a78cc5d2ac (diff) |
[refactor] get namespace as an optional query arg
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/soledad/server/_streaming_resource.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_streaming_resource.py b/src/leap/soledad/server/_streaming_resource.py index 9805bb7e..18e67401 100644 --- a/src/leap/soledad/server/_streaming_resource.py +++ b/src/leap/soledad/server/_streaming_resource.py @@ -54,8 +54,9 @@ class StreamingResource(Resource): assert interfaces.IBlobsBackend.providedBy(self._handler) def render_POST(self, request): - user, namespace = request.postpath - db = self.factory.open_database(user) + user = request.postpath[0] + namespace = request.args.get('namespace', ['default'])[0] + db = self._handler raw_content = request.content.read() blob_ids = json.loads(raw_content) for blob_id in blob_ids: |