summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server/interfaces.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-06 18:01:31 -0200
committerdrebs <drebs@leap.se>2017-12-13 13:43:47 -0200
commit87413812397c24db807643c99ce0c42803cc7e43 (patch)
tree48bb11fe8cb602b7e041e78c2d293bbba43b5784 /src/leap/soledad/server/interfaces.py
parent40258d7bfa57b4d73c10592c13c5a11aaf792446 (diff)
[refactor] make blobs backend get_tag() agnostic of twisted.web requests
Diffstat (limited to 'src/leap/soledad/server/interfaces.py')
-rw-r--r--src/leap/soledad/server/interfaces.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/leap/soledad/server/interfaces.py b/src/leap/soledad/server/interfaces.py
index 674fd8e6..15603047 100644
--- a/src/leap/soledad/server/interfaces.py
+++ b/src/leap/soledad/server/interfaces.py
@@ -157,18 +157,17 @@ class IBlobsBackend(Interface):
:rtype: int
"""
- def add_tag_header(user, blob_id, request, namespace=''):
+ def get_tag(user, blob_id, namespace=''):
"""
- Add a ``Tag`` HTTP header to the passed request containing the tag of
- a blob.
+ Get the tag of a blob.
:param blob_id: The id of the blob.
:type blob_id: str
- :param request: A representation of all of the information about the
- request that is being made.
- :type request: twisted.web.server.Request
:param namespace: An optional namespace for the blob.
:type namespace: str
+
+ :return: The tag of the blob.
+ :rtype: str
"""
def get_flags(user, blob_id, request, namespace=''):