l.c.m.b.RecipientReason(basemailer.RecipientReason) : class documentation

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

No class docstring
Method __init__ Undocumented
Class Method forBranchSubscriber Construct RecipientReason for a branch subscriber.
Class Method forReviewer Construct RecipientReason for a reviewer.
Class Method forRegistrant Construct RecipientReason for a proposal registrant.
Class Method forSourceOwner Construct RecipientReason for the source branch owner.
Class Method forBranchOwner Construct RecipientReason for a branch owner.
Method _getBranchIdentity Get the branch identity out of the cache, or generate it.
Method _getTemplateValues Undocumented

Inherited from RecipientReason:

Static Method makeRationale Undocumented
Method getReason Return a string explaining why the recipient is a recipient.
Class Method forBuildRequester Undocumented
def __init__(self, subscriber, recipient, branch, mail_header, reason_template, merge_proposal=None, max_diff_lines=BranchSubscriptionDiffSize.WHOLEDIFF, branch_identity_cache=None, review_level=CodeReviewNotificationLevel.FULL):
Undocumented
def _getBranchIdentity(self, branch):
Get the branch identity out of the cache, or generate it.
@classmethod
def forBranchSubscriber(cls, subscription, branch, recipient, rationale, merge_proposal=None, branch_identity_cache=None):
Construct RecipientReason for a branch subscriber.
@classmethod
def forReviewer(cls, branch_merge_proposal, pending_review, reviewer, branch_identity_cache=None):
Construct RecipientReason for a reviewer.

The reviewer will be the sole recipient.

@classmethod
def forRegistrant(cls, merge_proposal, branch_identity_cache=None):
Construct RecipientReason for a proposal registrant.

The registrant will be the sole recipient.

@classmethod
def forSourceOwner(cls, merge_proposal, branch_identity_cache=None):
Construct RecipientReason for the source branch owner.

The owner of the source branch will be the sole recipient. If the source branch owner is a team, None is returned.

@classmethod
def forBranchOwner(cls, branch, recipient, branch_identity_cache=None):
Construct RecipientReason for a branch owner.

The owner will be the sole recipient.

def _getTemplateValues(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.