l.c.m.g.GenericGitCollection : class documentation

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

Known subclasses: lp.code.model.gitcollection.AnonymousGitCollection, lp.code.model.gitcollection.VisibleGitCollection

See IGitCollection.
Method __init__ Construct a 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 visibleByUser See IGitCollection.
Method withIds See IGitCollection.
Method _filterBy Return a subset of this collection, filtered by 'expressions'.
Method _getRepositorySelect Return a Storm 'Select' for columns in this collection.
Method _getRepositoryExpressions Return the where expressions for this collection.
Method _getRepositoryVisibilityExpression Return the where clauses for visibility.
Method _naiveGetMergeProposals Undocumented
Method _scopedGetMergeProposals Undocumented
Method _getExactMatch Undocumented
def __init__(self, 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 count(self):
See IGitCollection.
def is_empty(self):
See IGitCollection.
def ownerCounts(self):
See IGitCollection.
@property
def store(self):
Undocumented
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 _getRepositorySelect(self, columns=(GitRepository.id,)):
Return a Storm 'Select' for columns in this collection.
def _getRepositoryExpressions(self):
Return the where expressions for this collection.
def _getRepositoryVisibilityExpression(self, repository_class=None):
Return the where clauses for visibility.
@staticmethod
def preloadVisibleRepositories(repositories, user=None):
Preload visibility for the given list of repositories.
@staticmethod
def preloadDataForRepositories(repositories):
Preload repositories' cached associated targets.
def getRepositories(self, find_expr=GitRepository, eager_load=False, order_by_date=False, order_by_id=False):
See IGitCollection.
def getRepositoryIds(self):
See IGitCollection.
def getMergeProposals(self, statuses=None, target_repository=None, target_path=None, prerequisite_repository=None, prerequisite_path=None, merged_revision_ids=None, merge_proposal_ids=None, eager_load=False):
See IGitCollection.
def _naiveGetMergeProposals(self, statuses=None, target_repository=None, target_path=None, prerequisite_repository=None, prerequisite_path=None, merged_revision_ids=None, merge_proposal_ids=None, eager_load=False):
Undocumented
def _scopedGetMergeProposals(self, statuses, eager_load=False):
Undocumented
def getMergeProposalsForPerson(self, person, status=None, eager_load=False):
See IGitCollection.
def getMergeProposalsForReviewer(self, reviewer, status=None):
See IGitCollection.
def getRuleGrantsForGrantee(self, grantee):
See IGitCollection.
def getTeamsWithRepositories(self, person):
See IGitCollection.
def inProject(self, project):
See IGitCollection.
def inProjectGroup(self, projectgroup):
See IGitCollection.
def inDistribution(self, distribution):
See IGitCollection.
def inDistributionSourcePackage(self, distro_source_package):
See IGitCollection.
def isPersonal(self):
See IGitCollection.
def isPrivate(self):
See IGitCollection.
def isExclusive(self):
See IGitCollection.
def ownedBy(self, person):
See IGitCollection.
def ownedByTeamMember(self, person):
See IGitCollection.
def registeredBy(self, person):
See IGitCollection.
def _getExactMatch(self, term):
Undocumented
def search(self, term):
See IGitCollection.
def subscribedBy(self, person):
See IGitCollection.
def targetedBy(self, person, since=None):
See IGitCollection.
def visibleByUser(self, person):
See IGitCollection.
def withIds(self, *repository_ids):
See IGitCollection.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.