From 87413812397c24db807643c99ce0c42803cc7e43 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 6 Dec 2017 18:01:31 -0200 Subject: [refactor] make blobs backend get_tag() agnostic of twisted.web requests --- src/leap/soledad/server/interfaces.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/leap/soledad/server/interfaces.py') 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=''): -- cgit v1.2.3