Part of lp.code.interfaces.gitnamespace View In Hierarchy
Attribute | has_defaults | True iff the target of this namespace may have a default repository. |
Attribute | allow_push_to_set_default | True iff this namespace permits automatically setting a default repository on push. |
Attribute | supports_merge_proposals | Does this namespace support merge proposals at all? |
Attribute | supports_code_imports | Does this namespace support code imports at all? |
Attribute | allow_recipe_name_from_target | Can recipe names reasonably be generated from the target name rather than the branch name? |
Method | canCreateRepositories | Is the user allowed to create repositories for this namespace? |
Method | getAllowedInformationTypes | Get the information types that a repository in this namespace can |
Method | getDefaultInformationType | Get the default information type for repositories in this namespace. |
Method | validateRegistrant | Check that the registrant can create a repository in this namespace. |
Method | validateRepositoryName | Check the repository name . |
Method | validateDefaultFlags | Check that any default flags on 'repository' fit this namespace. |
Method | validateMove | Check that 'mover' can move 'repository' into this namespace. |
Method | areRepositoriesMergeable | Is other mergeable into this ? |
Attribute | collection | An IGitCollection for this namespace. |
Method | assignKarma | Assign karma to the person on the appropriate target. |
Parameters | user | An IPerson . |
Returns | A Boolean value. |
Get the information types that a repository in this namespace can have. :param who: The user making the request. :return: A sequence of `InformationType`s.
Parameters | who | The user to return the information type for. |
Returns | An InformationType . |
Parameters | registrant | An IPerson . |
repository | An optional IGitRepository to also check when
working with imported repositories. | |
Raises | GitRepositoryCreatorNotMemberOfOwnerTeam | if the namespace owner is a team and the registrant is not in that team. |
GitRepositoryCreatorNotOwner | if the namespace owner is an individual and the registrant is not the owner. | |
GitRepositoryCreationForbidden | if the registrant is not allowed to create a repository in this namespace due to privacy rules. |
Parameters | repository | An IGitRepository to check. |
Raises | GitDefaultConflict | If the repository has the target_default flag set but this namespace already has a target default, or if the repository has the owner_default flag set but this namespace already has an owner-target default. |
Parameters | repository | An IGitRepository that might be moved. |
mover | The IPerson who would move it. | |
name | A new name for the repository. If None, the repository name is used. | |
Raises | GitRepositoryCreatorNotMemberOfOwnerTeam | if the namespace owner is a team and 'mover' is not in that team. |
GitRepositoryCreatorNotOwner | if the namespace owner is an individual and 'mover' is not the owner. | |
GitRepositoryCreationForbidden | if 'mover' is not allowed to create a repository in this namespace due to privacy rules. | |
GitRepositoryExists | if a repository with the new name already exists in the namespace. |
other
mergeable into this
?Parameters | this | An IGitRepository in this namespace. |
other | An IGitRepository in either this or another namespace. |