l.r.b.p.ProductDownloadFileMixin : class documentation

Part of lp.registry.browser.product View In Hierarchy

Known subclasses: lp.code.browser.branchlisting.ProductBranchesView, lp.code.browser.branchlisting.ProductBranchSummaryView, lp.registry.browser.milestone.MilestoneTagView, lp.registry.browser.milestone.MilestoneView, lp.registry.browser.product.ProductDownloadFilesView, lp.registry.browser.product.ProductView

Provides methods for managing download files.
Method product Product with all series, release and file data cached.
Method deleteFiles Delete the selected files from the set of releases.
Method getReleases Find the releases with download files for view.
Method processDeleteFiles If the 'delete_files' button was pressed, process the deletions.
Method latest_release_with_download_files Return the latest release with download files.
Method has_download_files Undocumented
@cachedproperty
def product(self):
Product with all series, release and file data cached.

Decorated classes are created, and they contain cached data obtained with a few queries rather than many iterated queries.

def deleteFiles(self, releases):
Delete the selected files from the set of releases.
ParametersreleasesA set of releases in the view.
ReturnsThe number of files deleted.
def getReleases(self):
Find the releases with download files for view.
def processDeleteFiles(self):
If the 'delete_files' button was pressed, process the deletions.
@cachedproperty
def latest_release_with_download_files(self):
Return the latest release with download files.
@cachedproperty
def has_download_files(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-12-13 00:00:05.