l.a.b.t.ProductReleaseFileFormatterAPI(ObjectFormatterAPI) : class documentation

Part of lp.app.browser.tales View In Hierarchy

Adapter for IProductReleaseFile objects to a formatted string.
Method link A hyperlinked ProductReleaseFile.
Method url Return the URL to download the file.
Method _release Undocumented
Method _getDownloadURL Return the download URL for the given LibraryFileAlias.

Inherited from ObjectFormatterAPI:

Method __init__ Undocumented
Method api_url Return the object's (partial) canonical web service URL.
Method traverse Traverse the specified path, processing any optional parameters.
Method global_css Undocumented
Method pagetitle The page title to be used.
Method _getSaneBreadcrumbDetail Undocumented
def link(self, view_name):
A hyperlinked ProductReleaseFile.

This consists of a download icon, the link to the ProductReleaseFile itself (with a tooltip stating its size) and links to that file's signature and MD5 hash.

def url(self, view_name=None, rootsite=None):
Return the URL to download the file.
@property
def _release(self):
Undocumented
def _getDownloadURL(self, lfa):
Return the download URL for the given LibraryFileAlias.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.