l.c.m.g.VisibleGitCollection(GenericGitCollection) : class documentation

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

A repository collection that has special logic for visibility.
Method __init__ Construct a GenericGitCollection.
Method visibleByUser See IGitCollection.
Method _filterBy Return a subset of this collection, filtered by 'expressions'.
Method _getRepositoryVisibilityExpression Return the where clauses for visibility.

Inherited from GenericGitCollection:

Method count See IGitCollection.
Method is_empty See IGitCollection.
Method ownerCounts See IGitCollection.
Method store Undocumented
Static Method preloadVisibleRepositories Preload visibility for the given list of repositories.
Static Method preloadDataForRepositories Preload repositories' cached associated targets.
Method getRepositories See IGitCollection.
Method getRepositoryIds See IGitCollection.
Method getMergeProposals See IGitCollection.
Method getMergeProposalsForPerson See IGitCollection.
Method getMergeProposalsForReviewer See IGitCollection.
Method getRuleGrantsForGrantee See IGitCollection.
Method getTeamsWithRepositories See IGitCollection.
Method inProject See IGitCollection.
Method inProjectGroup See IGitCollection.
Method inDistribution See IGitCollection.
Method inDistributionSourcePackage See IGitCollection.
Method isPersonal See IGitCollection.
Method isPrivate See IGitCollection.
Method isExclusive See IGitCollection.
Method ownedBy See IGitCollection.
Method ownedByTeamMember See IGitCollection.
Method registeredBy See IGitCollection.
Method search See IGitCollection.
Method subscribedBy See IGitCollection.
Method targetedBy See IGitCollection.
Method withIds See IGitCollection.
Method _getRepositorySelect Return a Storm 'Select' for columns in this collection.
Method _getRepositoryExpressions Return the where expressions for this collection.
Method _naiveGetMergeProposals Undocumented
Method _scopedGetMergeProposals Undocumented
Method _getExactMatch Undocumented
def __init__(self, user, store=None, filter_expressions=None, tables=None, asymmetric_filter_expressions=None, asymmetric_tables=None):
Construct a GenericGitCollection.
ParametersstoreThe store to look in for repositories. If not specified, use the default store.
filter_expressionsA list of Storm expressions to restrict the repositories in the collection. If unspecified, then there will be no restrictions on the result set. That is, all repositories in the store will be in the collection.
tablesA dict of Storm tables to the Join expression. If an expression in filter_expressions refers to a table, then that table must be in this list.
asymmetric_filter_expressionsAs per 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 GitRepository back onto GitRepository.
def _getRepositoryVisibilityExpression(self, repository_class=GitRepository):
Return the where clauses for visibility.
Parametersrepository_classThe GitRepository class to use - permits using ClassAliases.
def visibleByUser(self, person):
See IGitCollection.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.