c.l.d.l.TimeLimitedToken(storm.base.Storm) : class documentation

Part of canonical.launchpad.database.librarian View In Hierarchy

A time limited access token for accessing a private file.
Method __init__ Create a TimeLimitedToken.
Static Method allocate Allocate a token for url path in the librarian.
Static Method url_to_token_path Return the token path used for authorising access to url.
def __init__(self, path, token, created=None):
Create a TimeLimitedToken.
@staticmethod
def allocate(url):
Allocate a token for url path in the librarian.
ParametersurlA url bytestring. e.g. https://i123.restricted.launchpad-librarian.net/123/foo.txt Note that the token is generated for 123/foo.txt
ReturnsA url fragment token ready to be attached to the url. e.g. 'a%20token'
@staticmethod
def url_to_token_path(url):
Return the token path used for authorising access to url.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.