l.c.b.b.BranchListingItemsMixin : class documentation

Part of lp.code.browser.branchlisting View In Hierarchy

Known subclasses: lp.code.browser.branchlisting.BranchListingBatchNavigator, lp.code.browser.branchlisting.GroupedDistributionSourcePackageBranchesView

Mixin class to create BranchListingItems.
Method __init__ Undocumented
Method getBranchCollection Should be a user restricted branch collection for the view.
Method product_series_map Return a map from branch id to a list of product series.
Method getProductSeries Get the associated product series for the branch.
Method official_package_links_map Return a map from branch id to a list of package links.
Method getSuiteSourcePackages Get the associated SuiteSourcePackages for the branch.
Method getDistroDevelSeries distribution.currentseries hits the DB every time so cache it.
Method branch_ids_with_bug_links Return a set of branch ids that should show bug badges.
Method branch_ids_with_spec_links Return a set of branch ids that should show blueprint badges.
Method branch_ids_with_merge_proposals Return a set of branches that should show merge proposal badges.
Method tip_revisions Return a set of branch ids that should show blueprint badges.
Method decoratedBranches Return the decorated branches for the branches passed in.
Method _query_optimiser Return the branch listing query optimiser utility.
Method _visible_branch_ids Return a list of the branch ids that are visible.
Method _createItem Undocumented
def __init__(self, user):
Undocumented
def getBranchCollection(self):
Should be a user restricted branch collection for the view.
@cachedproperty
def _query_optimiser(self):
Return the branch listing query optimiser utility.
@cachedproperty
def _visible_branch_ids(self):
Return a list of the branch ids that are visible.
@cachedproperty
def product_series_map(self):
Return a map from branch id to a list of product series.
def getProductSeries(self, branch):
Get the associated product series for the branch.

If the branch has more than one associated product series they are listed in alphabetical order, unless one of them is the current development focus, in which case that comes first.

@cachedproperty
def official_package_links_map(self):
Return a map from branch id to a list of package links.
def getSuiteSourcePackages(self, branch):
Get the associated SuiteSourcePackages for the branch.

If there is more than one, they are sorted by pocket.

def getDistroDevelSeries(self, distribution):
distribution.currentseries hits the DB every time so cache it.
@cachedproperty
def branch_ids_with_bug_links(self):
Return a set of branch ids that should show bug badges.
@cachedproperty
def branch_ids_with_spec_links(self):
Return a set of branch ids that should show blueprint badges.
@cachedproperty
def branch_ids_with_merge_proposals(self):
Return a set of branches that should show merge proposal badges.

Branches have merge proposals badges if they've been proposed for merging into another branch (source branches).

@cachedproperty
def tip_revisions(self):
Return a set of branch ids that should show blueprint badges.
def _createItem(self, branch):
Undocumented
def decoratedBranches(self, branches):
Return the decorated branches for the branches passed in.
API Documentation for Launchpad, generated by pydoctor at 2021-03-09 00:00:03.