Ejemplo n.º 1
0
 def __init__(self, subject, template_name, recipients, from_address,
              delta=None, contents=None, diff=None, message_id=None,
              revno=None, notification_type=None, **kwargs):
     BaseMailer.__init__(self, subject, template_name, recipients,
                         from_address, delta, message_id,
                         notification_type)
     self.contents = contents
     self.diff = diff
     if diff is None:
         self.diff_size = 0
     else:
         self.diff_size = self.diff.count('\n') + 1
     self.revno = revno
     self.extra_template_params = kwargs
Ejemplo n.º 2
0
 def __init__(self,
              subject,
              template_name,
              recipients,
              from_address,
              delta=None,
              contents=None,
              diff=None,
              message_id=None,
              revno=None,
              notification_type=None,
              **kwargs):
     BaseMailer.__init__(self, subject, template_name, recipients,
                         from_address, delta, message_id, notification_type)
     self.contents = contents
     self.diff = diff
     if diff is None:
         self.diff_size = 0
     else:
         self.diff_size = self.diff.count('\n') + 1
     self.revno = revno
     self.extra_template_params = kwargs
 def __init__(self, subject, body_template, recipients, from_address,
              build):
     BaseMailer.__init__(
         self, subject, body_template, recipients, from_address,
         notification_type='recipe-build-status')
     self.build = build
Ejemplo n.º 4
0
 def __init__(self, subject, body_template, recipients, from_address,
              build):
     BaseMailer.__init__(
         self, subject, body_template, recipients, from_address,
         notification_type='recipe-build-status')
     self.build = build