l.c.i.b.IBranchModerate(Interface) : interface documentation

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

Known subclasses: lp.code.interfaces.webservice.IBranch

IBranch methods that can be edited by more than one community.
Method transitionToInformationType Set the information type for this branch.
Method unscan Reset this branch's scan data and optionally request a scan.
Method rescan Reset this branch's scan data and request a rescan.
@operation_parameters(copy_field(IBranchPublic['information_type']))
@call_with(REQUEST_USER, True)
@export_write_operation()
@operation_for_version('devel')
def transitionToInformationType(information_type, who, verify_policy=True):
Set the information type for this branch.
Parametersinformation_typeThe InformationType to transition to.
whoThe IPerson who is making the change.
verify_policyCheck if the new information type complies with the IBranchNamespacePolicy.
@operation_parameters(Bool(_('Scan the branch after resetting its scan data.'), True))
@export_write_operation()
@operation_for_version('devel')
def unscan(rescan=True):
Reset this branch's scan data and optionally request a scan.
@export_write_operation()
@operation_for_version('devel')
def rescan():
Reset this branch's scan data and request a rescan.

A convenience function wrapper around unscan().

API Documentation for Launchpad, generated by pydoctor at 2019-04-19 00:00:03.