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

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

Sets of held message.
Method getMessageByMessageID Return the held message with the matching Message-ID.
Method getHeldMessagesWithStatus Return a sequence of message holds matching status.
Method acknowledgeMessagesWithStatus Acknowledge all the MessageApprovals with the matching status.
def getMessageByMessageID(message_id):
Return the held message with the matching Message-ID.
Parametersmessage_idThe RFC 2822 Message-ID header.
ReturnsThe matching IMessageApproval or None if no match was found.
def getHeldMessagesWithStatus(status):
Return a sequence of message holds matching status.
ParametersstatusA PostedMessageStatus enum value.
ReturnsAn iterator over all the matching held messages. (type: sequence of MessageApproval)
def acknowledgeMessagesWithStatus(status):
Acknowledge all the MessageApprovals with the matching status.

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.

ParametersstatusA PostedMessageStatus enum value.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.