l.r.m.p.ProductNotificationJob(ProductJobDerived) : class documentation

Part of lp.registry.model.productjob View In Hierarchy

Known subclasses: lp.registry.model.productjob.CommercialExpiredJob, lp.registry.model.productjob.SevenDayCommercialExpirationJob, lp.registry.model.productjob.ThirtyDayCommercialExpirationJob

A Job that send an email to the product maintainer.
Class Method create See IProductNotificationJob.
Method subject See IProductNotificationJob.
Method email_template_name See IProductNotificationJob.
Method reviewer See IProductNotificationJob.
Method reply_to_commercial See IProductNotificationJob.
Method reply_to See IProductNotificationJob.
Method recipients See IProductNotificationJob.
Method message_data See IProductNotificationJob.
Method getErrorRecipients See BaseRunnableJob.
Method getBodyAndHeaders See IProductNotificationJob.
Method sendEmailToMaintainer See IProductNotificationJob.
Method run See BaseRunnableJob.

Inherited from ProductJobDerived:

Method __init__ Undocumented
Method __repr__ Undocumented
Class Method find See IPersonMergeJobSource.
Class Method iterReady Iterate through all ready ProductJobs.
Method log_name Undocumented
Method getOopsVars See IRunnableJob.

Inherited from BaseRunnableJob (via ProductJobDerived):

Method __eq__ Undocumented
Method __ne__ Undocumented
Method __lt__ Undocumented
Method getOopsRecipients Return a list of email-ids to notify about oopses.
Method getOperationDescription Undocumented
Method getOopsMailController Return a MailController for notifying people about oopses.
Method getUserErrorMailController Return a MailController for notifying about user errors.
Method notifyOops Report this oops.
Method notifyUserError See IRunnableJob.
Method makeOopsReport Generate an OOPS report using the given OOPS configuration.
Method acquireLease Undocumented
Method taskId Return a task ID that gives a clue what this job is about.
Method runViaCelery Request that this job be run via celery.
Method getDBClass Undocumented
Method celeryCommitHook Hook function to call when a commit completes.
Method celeryRunOnCommit Configure transaction so that commit runs this job via Celery.
Method queue See IJob.

Inherited from BaseRunnableJobSource (via ProductJobDerived, BaseRunnableJob):

Static Method contextManager Undocumented
@classmethod
def create(cls, product, email_template_name, subject, reviewer, reply_to_commercial=False):
See IProductNotificationJob.
@property
def subject(self):
See IProductNotificationJob.
@property
def email_template_name(self):
See IProductNotificationJob.
@cachedproperty
def reviewer(self):
See IProductNotificationJob.
@property
def reply_to_commercial(self):
See IProductNotificationJob.
@cachedproperty
def reply_to(self):
See IProductNotificationJob.
@cachedproperty
def recipients(self):
See IProductNotificationJob.
@cachedproperty
def message_data(self):
See IProductNotificationJob.
def getErrorRecipients(self):
See BaseRunnableJob.
def getBodyAndHeaders(self, email_template, address, reply_to=None):
See IProductNotificationJob.
def sendEmailToMaintainer(self, template_name, subject, from_address):
See IProductNotificationJob.
def run(self):
See BaseRunnableJob.

Subclasses that are updating products may make changes to the product before or after calling this class' run() method.

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