Package bitten :: Module notify :: Class BuildNotifyEmail

Class BuildNotifyEmail

               object --+        
                        |        
 trac.notification.Notify --+    
                            |    
trac.notification.NotifyEmail --+
                                |
                               BuildNotifyEmail

Notification of failed builds.
Instance Methods
 
__init__(self, env)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
notify(self, build)
 
get_recipients(self, resid)
Return a pair of list of subscribers to the resource 'resid'.
 
send(self, torcpts, ccrcpts)
Send message to recipients.
 
build_link(self)
 
template_data(self)
 
get_all_log_messages_for_step(self, step)
 
get_changeset(self)
 
get_author(self)

Inherited from trac.notification.NotifyEmail: add_headers, begin_send, encode_header, finish_send, format_header, get_smtp_address

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  readable_states = {'F': 'Failed', 'S': 'Successful'}
  template_name = 'bitten_notify_email.txt'
  from_email = 'bitten@localhost'

Inherited from trac.notification.NotifyEmail: addrsep_re, nodomaddr_re, smtp_port, smtp_server, subject

Properties

Inherited from object: __class__

Method Details

__init__(self, env)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

notify(self, build)

 
Overrides: trac.notification.Notify.notify

get_recipients(self, resid)

 

Return a pair of list of subscribers to the resource 'resid'.

First list represents the direct recipients (To:), second list represents the recipients in carbon copy (Cc:).

Overrides: trac.notification.Notify.get_recipients
(inherited documentation)

send(self, torcpts, ccrcpts)

 
Send message to recipients.
Overrides: trac.notification.Notify.send
(inherited documentation)