l.c.i.c.ICodeImportSet(Interface) : interface documentation

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

Interface representing the set of code imports.
Method new Create a new CodeImport.
Method get Get a CodeImport by its id.
Method getByBranch Get the CodeImport, if any, associated with a Branch.
Method getByGitRepository Get the CodeImport, if any, associated with a GitRepository.
Method getByCVSDetails Get the CodeImport with the specified CVS details.
Method getByURL Get the CodeImport with the URL and target RCS type.
Method delete Delete a CodeImport given its id.
Method search Find the CodeImports of the given status and type.
def new(registrant, context, branch_name, rcs_type, target_rcs_type, url=None, cvs_root=None, cvs_module=None, review_status=None, owner=None):
Create a new CodeImport.
ParameterscontextAn IHasCodeImports that the code is associated with.
ownerThe IPerson to set as the owner of the branch, or None to use registrant. registrant must be a member of owner to do this.
def get(id):
Get a CodeImport by its id.

Raises NotFoundError if no such import exists.

def getByBranch(branch):
Get the CodeImport, if any, associated with a Branch.
def getByGitRepository(repository):
Get the CodeImport, if any, associated with a GitRepository.
def getByCVSDetails(cvs_root, cvs_module):
Get the CodeImport with the specified CVS details.
def getByURL(url, target_rcs_type):
Get the CodeImport with the URL and target RCS type.
def delete(id):
Delete a CodeImport given its id.
def search(review_status=None, rcs_type=None, target_rcs_type=None):
Find the CodeImports of the given status and type.
Parametersreview_statusAn entry from the CodeImportReviewStatus schema, or None, which signifies 'any status'.
rcs_typeAn entry from the RevisionControlSystems schema, or None, which signifies 'any type'.
target_rcs_typeAn entry from the TargetRevisionControlSystems schema, or None, which signifies 'any type'.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.