l.s.m.p.PublishingSet : class documentation

Part of lp.soyuz.model.publishing View In Hierarchy

Utilities for manipulating publications in batches.
Method publishBinaries See IPublishingSet.
Method copyBinaries See IPublishingSet.
Method newSourcePublication See IPublishingSet.
Method getBuildsForSourceIds See IPublishingSet.
Method getByIdAndArchive See IPublishingSet.
Method getBuildsForSources See IPublishingSet.
Method getUnpublishedBuildsForSources See IPublishingSet.
Method getBinaryFilesForSources See IPublishingSet.
Method getFilesForSources See IPublishingSet.
Method getBinaryPublicationsForSources See IPublishingSet.
Method getBuiltPackagesSummaryForSourcePublication See IPublishingSet.
Method getActiveArchSpecificPublications See IPublishingSet.
Method getChangesFilesForSources See IPublishingSet.
Method getChangesFileLFA See IPublishingSet.
Method getBuildStatusSummariesForSourceIdsAndArchive See IPublishingSet.
Method getBuildStatusSummaryForSourcePublication See ISourcePackagePublishingHistory.getStatusSummaryForBuilds.
Method setMultipleDeleted Mark multiple publication records as deleted.
Method findCorrespondingDDEBPublications See IPublishingSet.
Method requestDeletion See IPublishingSet.
Method _extractIDs Return a list of database IDs for the given list or single object.
Method _getSourceBinaryJoinForSources Return the join linking sources with binaries.
def publishBinaries(self, archive, distroseries, pocket, binaries):
See IPublishingSet.
def copyBinaries(self, archive, distroseries, pocket, bpphs, policy=None, source_override=None):
See IPublishingSet.
def newSourcePublication(self, archive, sourcepackagerelease, distroseries, component, section, pocket, ancestor=None, create_dsd_job=True, creator=None, sponsor=None, packageupload=None):
See IPublishingSet.
def getBuildsForSourceIds(self, source_publication_ids, archive=None, build_states=None):
See IPublishingSet.
def getByIdAndArchive(self, id, archive, source=True):
See IPublishingSet.
def _extractIDs(self, one_or_more_source_publications):
Return a list of database IDs for the given list or single object.
Parametersone_or_more_source_publicationsan single object or a list of ISourcePackagePublishingHistory objects.
Returnsa list of database IDs corresponding to the give set of objects.
def getBuildsForSources(self, one_or_more_source_publications):
See IPublishingSet.
def _getSourceBinaryJoinForSources(self, source_publication_ids, active_binaries_only=True):
Return the join linking sources with binaries.
def getUnpublishedBuildsForSources(self, one_or_more_source_publications, build_states=None):
See IPublishingSet.
def getBinaryFilesForSources(self, one_or_more_source_publications):
See IPublishingSet.
def getFilesForSources(self, one_or_more_source_publications):
See IPublishingSet.
def getBinaryPublicationsForSources(self, one_or_more_source_publications):
See IPublishingSet.
def getBuiltPackagesSummaryForSourcePublication(self, source_publication):
See IPublishingSet.
def getActiveArchSpecificPublications(self, sourcepackagerelease, archive, distroseries, pocket):
See IPublishingSet.
def getChangesFilesForSources(self, one_or_more_source_publications):
See IPublishingSet.
def getChangesFileLFA(self, spr):
See IPublishingSet.
def getBuildStatusSummariesForSourceIdsAndArchive(self, source_ids, archive):
See IPublishingSet.
def getBuildStatusSummaryForSourcePublication(self, source_publication):
See ISourcePackagePublishingHistory.getStatusSummaryForBuilds.

This is provided here so it can be used by both the SPPH as well as our delegate class ArchiveSourcePublication, which implements the same interface but uses cached results for builds and binaries used in the calculation.

def setMultipleDeleted(self, publication_class, ids, removed_by, removal_comment=None):
Mark multiple publication records as deleted.
def findCorrespondingDDEBPublications(self, pubs):
See IPublishingSet.
def requestDeletion(self, pubs, removed_by, removal_comment=None):
See IPublishingSet.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.