l.s.w.p.DataDownloadView : class documentation

Part of lp.services.webapp.publisher View In Hierarchy

Known subclasses: lp.code.browser.branch.BranchDiffView, lp.code.browser.gitrepository.GitRepositoryDiffView, lp.registry.browser.BaseRdfView, lp.registry.browser.codeofconduct.CodeOfConductDownloadView, lp.services.comments.browser.comment.CommentBodyDownloadView

Download data without templating.

Subclasses must provide getBody, content_type and filename, and may provide charset.

Method __init__ Undocumented
Method __call__ Set the headers and return the body.
def __init__(self, context, request):
Undocumented
def __call__(self):
Set the headers and return the body.

It is not necessary to supply Content-length, because this is added by the caller.

API Documentation for Launchpad, generated by pydoctor at 2019-07-19 00:00:17.