l.b.i.s.ISpecificationEditRestricted(Interface) : interface documentation

Part of lp.blueprints.interfaces.specification View In Hierarchy

Known subclasses: lp.blueprints.interfaces.webservice.ISpecification

Specification's attributes and methods protected with launchpad.Edit.
Method setDefinitionStatus Mutator for definition_status that calls updateLifeCycle.
Method setImplementationStatus Mutator for implementation_status that calls updateLifeCycle.
Method newWorkItem Create a new SpecificationWorkItem.
Method updateWorkItems Update the existing work items to match the given ones.
Method setTarget Set this specification's target.
Method retarget Move the spec to the given target.
Method transitionToInformationType Change the information type of the Specification.
Method proposeGoal Propose this spec for a series or distroseries.
@mutator_for(ISpecificationView['definition_status'])
@call_with(REQUEST_USER)
@operation_parameters(copy_field(ISpecificationView['definition_status']))
@export_write_operation()
@operation_for_version('devel')
def setDefinitionStatus(definition_status, user):
Mutator for definition_status that calls updateLifeCycle.
@mutator_for(ISpecificationView['implementation_status'])
@call_with(REQUEST_USER)
@operation_parameters(copy_field(ISpecificationView['implementation_status']))
@export_write_operation()
@operation_for_version('devel')
def setImplementationStatus(implementation_status, user):
Mutator for implementation_status that calls updateLifeCycle.
def newWorkItem(title, sequence, status=SpecificationWorkItemStatus.TODO, assignee=None, milestone=None):
Create a new SpecificationWorkItem.
def updateWorkItems(new_work_items):
Update the existing work items to match the given ones.

First, for every existing work item that is not present on the new list, mark it as deleted. Then, for every tuple in the given list, lookup an existing work item with the same title and update its status, assignee, milestone and sequence (position on the work-items list). If there's no existing work items with that title, we create a new one.

Parametersnew_work_itemsA list of dictionaries containing the following keys: title, status, assignee and milestone.
def setTarget(target):
Set this specification's target.
Parameterstargetan IProduct or IDistribution.
@mutator_for(ISpecificationView['target'])
@operation_parameters(copy_field(ISpecificationView['target']))
@export_write_operation()
@operation_for_version('devel')
def retarget(target):
Move the spec to the given target.

The new target must be an IProduct or IDistribution.

@mutator_for(ISpecificationPublic['information_type'])
@call_with(REQUEST_USER)
@operation_parameters(copy_field(ISpecificationPublic['information_type']))
@export_write_operation()
@operation_for_version('devel')
def transitionToInformationType(information_type, who):
Change the information type of the Specification.
@call_with(REQUEST_USER)
@operation_parameters(Reference(IBugTarget, _('Target'), False, None))
@export_write_operation()
@operation_for_version('devel')
def proposeGoal(goal, proposer):
Propose this spec for a series or distroseries.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.