l.c.m.b.VisibleBranchCollection(GenericBranchCollection) : class documentation

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

A branch collection that has special logic for visibility.
Method __init__ Construct a GenericBranchCollection.
Method visibleByUser See IBranchCollection.
Method _filterBy Return a subset of this collection, filtered by 'expressions'.
Method _getBranchVisibilityExpression Return the where clauses for visibility.

Inherited from GenericBranchCollection:

Method count See IBranchCollection.
Method is_empty See IBranchCollection.
Method ownerCounts See IBranchCollection.
Method store Undocumented
Static Method preloadVisibleStackedOnBranches Preload the chains of stacked on branches related to the given list
Static Method preloadDataForBranches Preload branches' cached associated targets, product series, and
Method getBranches See IBranchCollection.
Method getBranchIds See IBranchCollection.
Method getMergeProposals See IBranchCollection.
Method getMergeProposalsForPerson See IBranchCollection.
Method getMergeProposalsForReviewer See IBranchCollection.
Method getExtendedRevisionDetails See IBranchCollection.
Method getTeamsWithBranches See IBranchCollection.
Method inProduct See IBranchCollection.
Method inProjectGroup See IBranchCollection.
Method inDistribution See IBranchCollection.
Method inDistroSeries See IBranchCollection.
Method inDistributionSourcePackage See IBranchCollection.
Method officialBranches See IBranchCollection
Method inSourcePackage See IBranchCollection.
Method isJunk See IBranchCollection.
Method isPrivate See IBranchCollection.
Method isExclusive See IBranchCollection.
Method isSeries See IBranchCollection.
Method ownedBy See IBranchCollection.
Method ownedByTeamMember See IBranchCollection.
Method registeredBy See IBranchCollection.
Method search See IBranchCollection.
Method scanned See IBranchCollection.
Method subscribedBy See IBranchCollection.
Method targetedBy See IBranchCollection.
Method linkedToBugs See IBranchCollection.
Method withBranchType Undocumented
Method withLifecycleStatus See IBranchCollection.
Method modifiedSince See IBranchCollection.
Method scannedSince See IBranchCollection.
Method withIds See IBranchCollection.
Method _getBranchSelect Return a Storm 'Select' for columns in this collection.
Method _getBranchExpressions Return the where expressions for this collection.
Static Method _convertListingSortToOrderBy Compute a value to pass to order_by on a collection of branches.
Method _naiveGetMergeProposals Undocumented
Method _scopedGetMergeProposals Undocumented
Method _getExactMatch Undocumented
def __init__(self, user, store=None, branch_filter_expressions=None, tables=None, asymmetric_filter_expressions=None, asymmetric_tables=None):
Construct a GenericBranchCollection.
ParametersstoreThe store to look in for branches. If not specified, use the default store.
branch_filter_expressionsA list of Storm expressions to restrict the branches in the collection. If unspecified, then there will be no restrictions on the result set. That is, all branches in the store will be in the collection.
tablesA dict of Storm tables to the Join expression. If an expression in branch_filter_expressions refers to a table, then that table must be in this list.
asymmetric_filter_expressionsAs per branch_filter_expressions but only applies to one side of reflexive joins.
asymmetric_tablesAs per tables, for asymmetric_filter_expressions.
def _filterBy(self, expressions, table=None, join=None, symmetric=True):
Return a subset of this collection, filtered by 'expressions'.
ParameterssymmetricIf True this filter will apply to both sides of merge proposal lookups and any other lookups that join Branch back onto Branch.
def _getBranchVisibilityExpression(self, branch_class=Branch):
Return the where clauses for visibility.
Parametersbranch_classThe Branch class to use - permits using ClassAliases.
def visibleByUser(self, person):
See IBranchCollection.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.