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

Class SiteError


Method Summary
  cleanUrl(cls, errorUrl)
Strip protocol and domain from the url (Class method)
  createEmailHeader(cls, fromAddress, toAddress, subject)
Create the smnp header for an error email (Class method)
  createReport(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, inHtml, contactName, contactEmail, comments)
Produce a summary of the given error details suitable for use in an error email (inHtml=false) or on a page (inHtml=true) (Class method)
  sendErrorEmail(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, contactName, contactEmail, comments)
Attempt to send an email to the zenoss errors email address with details of this error. (Class method)

Class Variable Summary
str ERRORS_ADDRESS = 'errors@zenoss.com'
str SMTP_HOST = 'mail.zenoss.com'

Class Method Details

cleanUrl(cls, errorUrl)

Strip protocol and domain from the url

createEmailHeader(cls, fromAddress, toAddress, subject)

Create the smnp header for an error email

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)

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. Returns true if mail was sent, false otherwise.

Class Variable Details

ERRORS_ADDRESS

Type:
str
Value:
'errors@zenoss.com'                                                    

SMTP_HOST

Type:
str
Value:
'mail.zenoss.com'                                                      

Generated by Epydoc 2.1 on Thu Aug 16 09:55:10 2007 http://epydoc.sf.net