Package ZenModel :: Module SiteError :: Class SiteError
[hide private]
[frames] | no frames]

Class SiteError

source code

Class Methods [hide private]
 
cleanUrl(cls, errorUrl)
Strip protocol and domain from the url
source code
 
createEmailHeader(cls, fromAddress, toAddress, subject)
Create the smnp header for an error email
source code
 
createReport(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, inHtml=True, contactName=None, contactEmail=None, comments=None)
Produce a summary of the given error details suitable for use in an error email (inHtml=false) or on a page (inHtml=true)
source code
 
sendErrorEmail(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, contactName=None, contactEmail=None, comments=None)
Attempt to send an email to the zenoss errors email address with details of this error.
source code
Class Variables [hide private]
  SMTP_HOST = 'mail.zenoss.com'
  ERRORS_ADDRESS = '[email protected]'
Method Details [hide private]

sendErrorEmail(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, contactName=None, contactEmail=None, comments=None)
Class Method

source code 
Attempt to send an email to the zenoss errors email address with details of this error. Returns true if mail was sent, false otherwise.