l.s.m.p.PackageUploadMailer(BaseMailer) : class documentation

Part of lp.soyuz.mail.packageupload View In Hierarchy

No class docstring
Class Method getRecipientsForAction Undocumented
Class Method forAction Undocumented
Method __init__ Constructor.
Method generateEmail See BaseMailer.
Method _getFromAddress See BaseMailer.
Method _getHeaders See BaseMailer.
Method _addAttachments See BaseMailer.
Method _getTemplateName See BaseMailer.
Method _getTemplateParams See BaseMailer.
Method _getFooter See BaseMailer.

Inherited from BaseMailer:

Method textDelta Return a textual version of the class delta.
Method sendOne Send notification to one recipient.
Method sendAll Send notifications to all recipients.
Method _getToAddresses Undocumented
Method _getSubject The subject template expanded with the template params.
Method _getReplyToAddress Return the address to use for the reply-to header.
Method _getBody Return the complete body to use for this email.
Method _getExpandedFooter Provide an expanded footer for recipients who have requested it.
@classmethod
def getRecipientsForAction(cls, action, info, blamee, spr, bprs, archive, distroseries, pocket, announce_from_person=None, logger=None):
Undocumented
@classmethod
def forAction(cls, action, blamee, spr, bprs, customfiles, archive, distroseries, pocket, changes=None, changesfile_object=None, announce_from_person=None, previous_version=None, logger=None, **kwargs):
Undocumented
def __init__(self, subject, template_name, recipients, from_address, action, info, blamee, spr, bprs, customfiles, archive, distroseries, pocket, summary_text=None, changes=None, changesfile_content=None, announce_from_address=None, previous_version=None, logger=None):
Constructor.
ParameterssubjectA Python dict-replacement template for the subject line of the email.
templateName of the template to use for the message body.
recipientsA dict of recipient to Subscription.
from_addressThe from_address to use on emails.
deltaA Delta object with members "delta_values", "interface" and "new_values", such as BranchMergeProposalDelta.
message_idThe Message-Id to use for generated emails. If not supplied, random message-ids will be used.
mail_controller_classThe class of the mail controller to use to send the mails. Defaults to MailController.
requestAn optional IErrorReportRequest to use when logging OOPSes.
wrapWrap body text using MailWrapper.
force_wrapSee MailWrapper.format.
def _getFromAddress(self, email, recipient):
See BaseMailer.
def _getHeaders(self, email, recipient):
See BaseMailer.
def _addAttachments(self, ctrl, email):
See BaseMailer.
def _getTemplateName(self, email, recipient):
See BaseMailer.
def _getTemplateParams(self, email, recipient):
See BaseMailer.
def _getFooter(self, email, recipient, params):
See BaseMailer.
def generateEmail(self, email, recipient, force_no_attachments=False):
See BaseMailer.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.