Package Products :: Package ZenReports :: Module ReportMail :: Class Page |
[hide private]
[frames] | no frames]

# Class Page

source code

    markupbase.ParserBase --+
                            |
        HTMLParser.HTMLParser --+
                                |
                               Page

Turn an html page into a mime-encoded multi-part email. Turn the <title> into the subject and keep only the text of the content pane. Url references are turned into absolute references, and images are sent with the page.

Instance Methods | [hide private]
__init__(self, user, passwd, div, comment) Initialize and reset this instance. | source code
fetchImage(self, url) | source code
absolute(self, url) | source code
alter(self, attrs, name, function) | source code
updateSrc(self, attrs) | source code
updateHref(self, attrs) | source code
handle_starttag(self, tag, attrs) | source code
handle_endtag(self, tag) | source code
handle_data(self, data) | source code
handleCSV(self, data) | source code
slurp(self, url) | source code
fetch(self, url) | source code
mail(self) | source code
Inherited from `HTMLParser.HTMLParser`: `check_for_whole_start_tag`, `clear_cdata_mode`, `close`, `error`, `feed`, `get_starttag_text`, `goahead`, `handle_charref`, `handle_comment`, `handle_decl`, `handle_entityref`, `handle_pi`, `handle_startendtag`, `parse_endtag`, `parse_pi`, `parse_starttag`, `reset`, `set_cdata_mode`, `unescape`, `unknown_decl` Inherited from `markupbase.ParserBase`: `getpos`, `parse_comment`, `parse_declaration`, `parse_marked_section`, `updatepos` Inherited from `markupbase.ParserBase` (private): `_parse_doctype_attlist`, `_parse_doctype_element`, `_parse_doctype_entity`, `_parse_doctype_notation`, `_parse_doctype_subset`, `_scan_name`

Class Variables | [hide private]
Inherited from `HTMLParser.HTMLParser`: `CDATA_CONTENT_ELEMENTS`, `entitydefs` Inherited from `markupbase.ParserBase` (private): `_decl_otherchars`

Method Details | [hide private]

### __init__(self, user, passwd, div, comment) (Constructor) | source code
Initialize and reset this instance. Overrides: markupbase.ParserBase.__init__

### handle_starttag(self, tag, attrs) | source code
Overrides: HTMLParser.HTMLParser.handle_starttag

### handle_endtag(self, tag) | source code
Overrides: HTMLParser.HTMLParser.handle_endtag

### handle_data(self, data) | source code
Overrides: HTMLParser.HTMLParser.handle_data