l.c.i.g.IGitNamespace(Interface) : interface documentation

Part of lp.code.interfaces.gitnamespace View In Hierarchy

A namespace that a Git repository lives in.
Attribute name The name of the namespace. This is prepended to the repository name.
Attribute target The IHasGitRepositories for this namespace.
Method createRepository Create and return an IGitRepository in this namespace.
Method isNameUsed Is 'name' already used in this namespace?
Method findUnusedName Find an unused repository name starting with 'prefix'.
Method moveRepository Move the repository into this namespace.
Method getRepositories Return the repositories in this namespace.
Method getByName Find the repository in this namespace called 'repository_name'.
Method __eq__ Is this namespace the same as another namespace?
Method __ne__ Is this namespace not the same as another namespace?
name =
The name of the namespace. This is prepended to the repository name.
target =
The IHasGitRepositories for this namespace.
def createRepository(repository_type, registrant, name, information_type=None, date_created=None):
Create and return an IGitRepository in this namespace.
def isNameUsed(name):
Is 'name' already used in this namespace?
def findUnusedName(prefix):
Find an unused repository name starting with 'prefix'.

Note that there is no guarantee that the name returned by this method will remain unused for very long.

def moveRepository(repository, mover, new_name=None, rename_if_necessary=False):
Move the repository into this namespace.
ParametersrepositoryThe IGitRepository to move.
moverThe IPerson doing the moving.
new_nameA new name for the repository.
rename_if_necessaryRename the repository if the repository name already exists in this namespace.
RaisesGitRepositoryCreatorNotMemberOfOwnerTeamif the namespace owner is a team and 'mover' is not in that team.
GitRepositoryCreatorNotOwnerif the namespace owner is an individual and 'mover' is not the owner.
GitRepositoryCreationForbiddenif 'mover' is not allowed to create a repository in this namespace due to privacy rules.
GitRepositoryExistsif a repository with the new name already exists in the namespace, and 'rename_if_necessary' is False.
def getRepositories():
Return the repositories in this namespace.
def getByName(repository_name, default=None):
Find the repository in this namespace called 'repository_name'.
ReturnsIGitRepository if found, otherwise 'default'.
def __eq__(other):
Is this namespace the same as another namespace?
def __ne__(other):
Is this namespace not the same as another namespace?
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.