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

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

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

Method that require edit permissions.
Method validateClaimReview Implements the validation for claiming a review.
Method claimReview Change a pending review into a review for claimant.
Method validateReasignReview Implements the validation for reassignment.
Method reassignReview Reassign a pending review to someone else.
Method delete Delete the pending review.
def validateClaimReview(claimant):
Implements the validation for claiming a review.
RaisesClaimReviewFailedIf the claimant already has a personal review, if the reviewer is not a team, if the claimant is not in the reviewer team, or if the review is not pending.
@call_with(REQUEST_USER)
@export_write_operation()
def claimReview(claimant):
Change a pending review into a review for claimant.

Pending team reviews can be claimed by members of that team. This allows reviews to be moved of the general team todo list, and onto a personal todo list.

ParametersclaimantThe person claiming the team review.
RaisesClaimReviewFailedIf the claimant already has a personal review, if the reviewer is not a team, if the claimant is not in the reviewer team, or if the review is not pending.
def validateReasignReview(reviewer):
Implements the validation for reassignment.
RaisesReviewNotPendingIf the review is not pending.
ReassignReviewFailedIf the reviewer is an individual and already has a personal review.
@operation_parameters(Reference(_('The person or team to assign to do the review.'), IPerson))
@export_write_operation()
def reassignReview(reviewer):
Reassign a pending review to someone else.

Pending reviews can be reassigned to someone else.

ParametersreviewerThe person to assign the pending review to.
RaisesReviewNotPendingIf the review is not pending.
ReassignReviewFailedIf the reviewer is an individual and already has a personal review.
@export_destructor_operation()
def delete():
Delete the pending review.
RaisesReviewNotPendingIf the review is not pending.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.