def _mails(self, users_and_watches): revision = self.revision document = revision.document log.debug("Sending edited notification email for document (id=%s)" % document.id) subject = ugettext(u'[MDN] Page "%(document_title)s" changed by %(creator)s') context = context_dict(revision) return emails_with_users_and_watches( subject=subject, text_template="wiki/email/edited.ltxt", html_template=None, context_vars=context, users_and_watches=users_and_watches, default_locale=document.locale, )
def _mails(self, users_and_watches): revision = self.revision document = revision.document log.debug('Sending edited notification email for document (id=%s)' % document.id) subject = _(u'[MDN] Page "{document_title}" changed by {creator}') context = context_dict(revision) return emails_with_users_and_watches( subject=subject, text_template='wiki/email/edited.ltxt', html_template=None, context_vars=context, users_and_watches=users_and_watches, default_locale=document.locale)
def _mails(self, users_and_watches): revision = self.revision document = revision.document log.debug('Sending edited notification email for document (id=%s)' % document.id) subject = _(u'[MDN] Page "{document_title}" changed by {creator}') context = context_dict(revision) return emails_with_users_and_watches( subject=subject, text_template='wiki/email/edited.ltxt', html_template=None, context_vars=context, users_and_watches=users_and_watches, default_locale=document.locale)
def _mails(self, users_and_watches): revision = self.revision document = revision.document log.debug('Sending edited notification email for document (id=%s)' % document.id) if document.revisions.only('id').first().id == revision.id: subject = _('[MDN][%(locale)s][New] Page "%(document_title)s"' ' created by %(creator)s') else: subject = _('[MDN][%(locale)s] Page "%(document_title)s"' ' changed by %(creator)s') context = notification_context(revision) return emails_with_users_and_watches( subject=subject, text_template='wiki/email/edited.ltxt', html_template=None, context_vars=context, users_and_watches=users_and_watches, default_locale=document.locale, headers=extra_headers(revision.creator, document))
def _mails(self, users_and_watches): revision = self.revision document = revision.document log.debug('Sending edited notification email for document (id=%s)' % document.id) if document.revisions.only('id').first().id == revision.id: subject = _( '[MDN][%(locale)s][New] Page "%(document_title)s"' ' created by %(creator)s') else: subject = _( '[MDN][%(locale)s] Page "%(document_title)s"' ' changed by %(creator)s') context = notification_context(revision) return emails_with_users_and_watches( subject=subject, text_template='wiki/email/edited.ltxt', html_template=None, context_vars=context, users_and_watches=users_and_watches, default_locale=document.locale, headers=extra_headers(revision.creator, document))