l.c.m.c.CodeHandler : class documentation

Part of lp.code.mail.codehandler View In Hierarchy

Mail handler for the code domain.
Method process Process an email for the code domain.
Method processCommands Process the various merge proposal commands against the context.
Method processComment Process an email and create a CodeReviewComment.
Class Method getBranchMergeProposal Return branch merge proposal designated by email_addr.
Static Method _getReplyAddress The address to use for automatic replies.
def process(self, mail, email_addr, file_alias):
Process an email for the code domain.

Emails may be converted to CodeReviewComments, and / or deferred to jobs to create BranchMergeProposals.

def processCommands(self, context, commands):
Process the various merge proposal commands against the context.
def processComment(self, mail, email_addr, file_alias):
Process an email and create a CodeReviewComment.

The only mail command understood is 'vote', which takes 'approve', 'disapprove', or 'abstain' as values. Specifically, it takes any CodeReviewVote item value, case-insensitively. :return: True.

@staticmethod
def _getReplyAddress(mail):
The address to use for automatic replies.
@classmethod
def getBranchMergeProposal(klass, email_addr):
Return branch merge proposal designated by email_addr.

Addresses are of the form mp+5@code.launchpad.net, where 5 is the database id of the related branch merge proposal.

The inverse operation is BranchMergeProposal.address.

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