l.c.m.s.SourcePackageRecipeData(Storm) : class documentation

Part of lp.code.model.sourcepackagerecipedata View In Hierarchy

The database representation of a BaseRecipeBranch from bzr-builder.

This is referenced from the SourcePackageRecipe table as the 'recipe_data' column and from the SourcePackageRecipeBuild table as the 'manifest' column.

Method base 0 Undocumented
Method base Undocumented
Static Method getParsedRecipe See IRecipeBranchSource.
Static Method findRecipes Find recipes for a given branch or repository.
Class Method createManifestFromText See ISourcePackageRecipeDataSource.
Method getRecipe The BaseRecipeBranch version of the recipe.
Method setRecipe Convert the BaseRecipeBranch builder_recipe to the db form.
Method __init__ Initialize from the bzr-builder recipe and link it to a db recipe.
Static Method preLoadReferencedBranches Undocumented
Method getReferencedBranches Return an iterator of the Branch/GitRepository objects referenced
Method _scanInstructions Check the recipe_branch doesn't use 'run' and look up the branches.
Method _recordInstructions Build _SourcePackageRecipeDataInstructions for the recipe_branch.
Method _referenced_branches Undocumented
@property
def base 0(self):
Undocumented
@base.setter
def base(self, value):
Undocumented
@staticmethod
def getParsedRecipe(recipe_text):
See IRecipeBranchSource.
@staticmethod
def findRecipes(branch_or_repository, revspecs=None):
Find recipes for a given branch or repository.

:param branch_or_repository: The branch or repository to search for.
:param revspecs: If not None, return only recipes whose `revspec` is
    in this sequence.
:return: a collection of `ISourcePackageRecipe`s.
@classmethod
def createManifestFromText(cls, text, sourcepackage_recipe_build):
See ISourcePackageRecipeDataSource.
def getRecipe(self):
The BaseRecipeBranch version of the recipe.
def _scanInstructions(self, base, recipe_branch):
Check the recipe_branch doesn't use 'run' and look up the branches.

We do all the lookups before we start constructing database objects to avoid flushing half-constructed objects to the database.

ReturnsA map {branch_url: db_branch}.
def _recordInstructions(self, recipe_branch, parent_insn, branch_map, line_number=0):
Build _SourcePackageRecipeDataInstructions for the recipe_branch.
def setRecipe(self, builder_recipe, recipe_branch_type):
Convert the BaseRecipeBranch builder_recipe to the db form.
def __init__(self, recipe, recipe_branch_type, sourcepackage_recipe=None, sourcepackage_recipe_build=None):
Initialize from the bzr-builder recipe and link it to a db recipe.
@staticmethod
def preLoadReferencedBranches(sourcepackagerecipedatas):
Undocumented
def getReferencedBranches(self):
Return an iterator of the Branch/GitRepository objects referenced by this recipe.
@cachedproperty
def _referenced_branches(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-12-19 00:00:19.