l.r.i.m.IMessageApproval(Interface) : interface documentation

Part of lp.registry.interfaces.mailinglist View In Hierarchy

A held message.
Text message_id The RFC 2822 Message-ID header.
PublicPersonChoice posted_by The Launchpad member who posted the message.
Object posted_message An alias to the posted message in the librarian.
Object message The posted message
Datetime posted_date The date this message was posted.
Object mailing_list The mailing list this message was posted to.
Choice status The status of the held message.
PublicPersonChoice disposed_by The person who approved or rejected this message.
Datetime disposal_date The date this message was approved or rejected.
Method approve Approve the message.
Method reject Reject the message.
Method discard Discard the message.
Method acknowledge Acknowledge the pending status of a message.
message_id =
The RFC 2822 Message-ID header.
posted_by =
The Launchpad member who posted the message.
posted_message =
An alias to the posted message in the librarian.
message =
The posted message
posted_date =
The date this message was posted.
mailing_list =
The mailing list this message was posted to.
status =
The status of the held message.
disposed_by =
The person who approved or rejected this message.
disposal_date =
The date this message was approved or rejected.
def approve(reviewer):
Approve the message.

Set the status to APPROVAL_PENDING, indicating that the reviewer has chosen to approve the message, but that Mailman has not yet acknowledged this disposition.

ParametersreviewerThe person who did the review.
def reject(reviewer):
Reject the message.

Set the status to REJECTION_PENDING, indicating that the reviewer has chosen to reject (i.e. bounce) the message, but that Mailman has not yet acknowledged this disposition.

ParametersreviewerThe person who did the review.
def discard(reviewer):
Discard the message.

Set the status to DISCARD_PENDING, indicating that the reviewer has chosen to discard the message, but that Mailman has not yet acknowledged this disposition.

ParametersreviewerThe person who did the review.
def acknowledge():
Acknowledge the pending status of a message.

This changes the statuses APPROVAL_PENDING to APPROVED, REJECTION_PENDING to REJECTED and DISCARD_PENDING to DISCARD. It is illegal to call this function when the status is not one of these states.

API Documentation for Launchpad, generated by pydoctor at 2020-08-07 00:00:07.