Package hm :: Package app :: Package views :: Module rssparser :: Class RSSParser
[hide private]
[frames] | no frames]

Class RSSParser

source code


Instance Methods [hide private]
 
reset(self)
Reset this instance.
source code
 
push(self, element, expectingText) source code
 
pop(self, element) source code
 
_addNamespaces(self, attrs) source code
 
_mapToStandardPrefix(self, name) source code
 
_getAttribute(self, attrs, name) source code
 
start_channel(self, attrs) source code
 
end_channel(self) source code
 
start_item(self, attrs) source code
 
end_item(self) source code
 
start_dc_language(self, attrs) source code
 
start_language(self, attrs) source code
 
end_dc_language(self) source code
 
end_language(self) source code
 
start_dc_creator(self, attrs) source code
 
start_managingeditor(self, attrs) source code
 
start_webmaster(self, attrs) source code
 
end_dc_creator(self) source code
 
end_managingeditor(self) source code
 
end_webmaster(self) source code
 
start_dc_rights(self, attrs) source code
 
start_copyright(self, attrs) source code
 
end_dc_rights(self) source code
 
end_copyright(self) source code
 
start_dc_date(self, attrs) source code
 
start_lastbuilddate(self, attrs) source code
 
start_pubdate(self, attrs) source code
 
end_dc_date(self) source code
 
end_lastbuilddate(self) source code
 
end_pubdate(self) source code
 
start_dc_subject(self, attrs) source code
 
end_dc_subject(self) source code
 
start_link(self, attrs) source code
 
end_link(self) source code
 
start_guid(self, attrs) source code
 
end_guid(self) source code
 
start_title(self, attrs) source code
 
start_description(self, attrs) source code
 
start_content_encoded(self, attrs) source code
 
start_fullitem(self, attrs) source code
 
end_content_encoded(self) source code
 
end_fullitem(self) source code
 
start_admin_generatoragent(self, attrs) source code
 
unknown_starttag(self, tag, attrs) source code
 
unknown_endtag(self, tag) source code
 
handle_charref(self, ref)
Handle character reference, no need to override.
source code
 
handle_entityref(self, ref)
Handle entity references.
source code
 
handle_data(self, text) source code
 
handle_comment(self, text) source code
 
handle_pi(self, text) source code
 
handle_decl(self, text) source code
 
_new_declname_match(...)
match(string[, pos[, endpos]]) --> match object or None.
source code
 
_scan_name(self, i, declstartpos) source code
 
parse_declaration(self, i) source code

Inherited from sgmllib.SGMLParser: __init__, close, error, feed, finish_endtag, finish_shorttag, finish_starttag, get_starttag_text, goahead, handle_endtag, handle_starttag, parse_endtag, parse_pi, parse_starttag, report_unbalanced, setliteral, setnomoretags, unknown_charref, unknown_entityref

Inherited from markupbase.ParserBase: getpos, parse_comment, parse_marked_section, unknown_decl, updatepos

Inherited from markupbase.ParserBase (private): _parse_doctype_attlist, _parse_doctype_element, _parse_doctype_entity, _parse_doctype_notation, _parse_doctype_subset

Class Variables [hide private]
  namespaces = {'http://backend.userland.com/rss': '', 'http://p...

Inherited from sgmllib.SGMLParser: entitydefs

Inherited from sgmllib.SGMLParser (private): _decl_otherchars

Method Details [hide private]

reset(self)

source code 

Reset this instance. Loses all unprocessed data.

Overrides: sgmllib.SGMLParser.reset
(inherited documentation)

unknown_starttag(self, tag, attrs)

source code 
Overrides: sgmllib.SGMLParser.unknown_starttag

unknown_endtag(self, tag)

source code 
Overrides: sgmllib.SGMLParser.unknown_endtag

handle_charref(self, ref)

source code 

Handle character reference, no need to override.

Overrides: sgmllib.SGMLParser.handle_charref
(inherited documentation)

handle_entityref(self, ref)

source code 

Handle entity references.

There should be no need to override this method; it can be tailored by setting up the self.entitydefs mapping appropriately.

Overrides: sgmllib.SGMLParser.handle_entityref
(inherited documentation)

handle_data(self, text)

source code 
Overrides: sgmllib.SGMLParser.handle_data

handle_comment(self, text)

source code 
Overrides: sgmllib.SGMLParser.handle_comment

handle_pi(self, text)

source code 
Overrides: sgmllib.SGMLParser.handle_pi

handle_decl(self, text)

source code 
Overrides: sgmllib.SGMLParser.handle_decl

_new_declname_match(...)

source code 

match(string[, pos[, endpos]]) --> match object or None. Matches zero or more characters at the beginning of the string

_scan_name(self, i, declstartpos)

source code 
Overrides: markupbase.ParserBase._scan_name

parse_declaration(self, i)

source code 
Overrides: markupbase.ParserBase.parse_declaration

Class Variable Details [hide private]

namespaces

Value:
{'http://backend.userland.com/rss': '',
 'http://purl.org/dc/elements/1.1/': 'dc',
 'http://purl.org/rss/1.0/': '',
 'http://purl.org/rss/1.0/modules/company/': 'co',
 'http://purl.org/rss/1.0/modules/syndication/': 'sy',
 'http://purl.org/rss/1.0/modules/textinput/': 'ti',
 'http://webns.net/mvcb/': 'admin'}