l.a.n.QuestionModifiedDefaultNotification(QuestionNotification) : class documentation

Part of lp.answers.notification View In Hierarchy

Known subclasses: lp.answers.notification.QuestionModifiedOwnerNotification, lp.answers.tests.test_question_notifications.FakeQuestionModifiedNotification

Base implementation of a notification when a question is modified.
Method initialize Save the old question for comparison. It also set the new_message
Method metadata_changes_text Textual representation of the changes to the question metadata.
Method getSubject The reply subject line.
Method getHeaders Add a References header.
Method shouldNotify Only send a notification when a message was added or some
Method getBody See QuestionNotification.
Method getNewMessageText Should return the notification text related to a new message.

Inherited from QuestionNotification:

Method __init__ Base constructor.
Method user Return the user from the event.
Method enqueue Create a job to send email about the event.
Method unsupported_language Whether the question language is unsupported or not.
Method unsupported_language_warning Warning about the fact that the question is written in an
def initialize(self):
Save the old question for comparison. It also set the new_message attribute if a new message was added.
@cachedproperty
def metadata_changes_text(self):
Textual representation of the changes to the question metadata.
def getSubject(self):
The reply subject line.
def getHeaders(self):
Add a References header.
def shouldNotify(self):
Only send a notification when a message was added or some metadata was changed.
def getBody(self):
See QuestionNotification.
def getNewMessageText(self):
Should return the notification text related to a new message.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.