l.s.m.b.BuildSet : class documentation

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

Implements interfaces: lp.soyuz.interfaces.build.IBuildSet

No class docstring
Method getBuildBySRAndArchtag See IBuildSet
Method getByBuildID See IBuildSet.
Method getPendingBuildsForArchSet See IBuildSet.
Method handleOptionalParamsForBuildQueries Construct query clauses needed/shared by all getBuild..() methods.
Method getBuildsForBuilder See IBuildSet.
Method getBuildsForArchive See IBuildSet.
Method getBuildsByArchIds See IBuildSet.
Method retryDepWaiting See IBuildSet.
Method getBuildsBySourcePackageRelease See IBuildSet.
Method getStatusSummaryForBuilds See IBuildSet.
Method getByQueueEntry See IBuildSet.
Method getQueueEntriesForBuildIDs See IBuildSet.
Method calculateCandidates See IBuildSet.
Method _decorate_with_prejoins Decorate build records with related data prefetch functionality.
Method _prefetchBuildData Used to pre-populate the cache with build related data.
def getBuildBySRAndArchtag(self, sourcepackagereleaseID, archtag):
See IBuildSet
def getByBuildID(self, id):
See IBuildSet.
def getPendingBuildsForArchSet(self, archseries):
See IBuildSet.
def handleOptionalParamsForBuildQueries(self, queries, tables, status=None, name=None, pocket=None, arch_tag=None):
Construct query clauses needed/shared by all getBuild..() methods.

This method is not exposed via the public interface as it is only used to DRY-up trusted code.

Parametersqueriescontainer to which to add any resulting query clauses.
tablescontainer to which to add joined tables.
statusoptional build state for which to add a query clause if present.
nameoptional source package release name for which to add a query clause if present.
pocketoptional pocket for which to add a query clause if present.
arch_tagoptional architecture tag for which to add a query clause if present.
def getBuildsForBuilder(self, builder_id, status=None, name=None, arch_tag=None, user=None):
See IBuildSet.
def getBuildsForArchive(self, archive, status=None, name=None, pocket=None, arch_tag=None):
See IBuildSet.
def getBuildsByArchIds(self, arch_ids, status=None, name=None, pocket=None):
See IBuildSet.
def _decorate_with_prejoins(self, result_set):
Decorate build records with related data prefetch functionality.
def retryDepWaiting(self, distroarchseries):
See IBuildSet.
def getBuildsBySourcePackageRelease(self, sourcepackagerelease_ids, buildstate=None):
See IBuildSet.
def getStatusSummaryForBuilds(self, builds):
See IBuildSet.
def _prefetchBuildData(self, results):
Used to pre-populate the cache with build related data.

When dealing with a group of Build records we can't use the prejoin facility to also fetch BuildQueue, SourcePackageRelease and LibraryFileAlias records in a single query because the result set is too large and the queries time out too often.

So this method receives a list of Build instances and fetches the corresponding SourcePackageRelease and LibraryFileAlias rows (prejoined with the appropriate SourcePackageName and LibraryFileContent respectively) as well as builders related to the Builds at hand.

def getByQueueEntry(self, queue_entry):
See IBuildSet.
def getQueueEntriesForBuildIDs(self, build_ids):
See IBuildSet.
def calculateCandidates(self, archseries):
See IBuildSet.
API Documentation for Launchpad, generated by pydoctor at 2010-04-14 00:00:38.