Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | reset |
def | setnomoretags |
def | setliteral |
def | feed |
def | close |
def | error |
def | goahead |
def | parse_comment |
def | parse_pi |
def | get_starttag_text |
def | parse_starttag |
def | parse_endtag |
def | finish_shorttag |
def | finish_starttag |
def | finish_endtag |
def | handle_starttag |
def | handle_endtag |
def | report_unbalanced |
def | handle_charref |
def | handle_entityref |
def | handle_data |
def | handle_comment |
def | handle_decl |
def | handle_pi |
def | unknown_starttag |
def | unknown_endtag |
def | unknown_charref |
def | unknown_entityref |
Data Fields | |
verbose | |
rawdata | |
stack | |
lasttag | |
nomoretags | |
literal | |
Static Public Attributes | |
entitydefs = \ | |
Definition at line 56 of file sgmllib.py.
def close | ( | self) |
Handle the remaining data.
Definition at line 97 of file sgmllib.py.
References SGMLParser.goahead().
def error | ( | self, | |
message | |||
) |
Definition at line 101 of file sgmllib.py.
def feed | ( | self, | |
data | |||
) |
Feed some data to the parser. Call this as often as you want, with as little or as much text as you want (may include '\n'). (This just saves the text, all the processing is done by goahead().)
Definition at line 86 of file sgmllib.py.
References SGMLParser.goahead(), and SGMLParser.rawdata.
def finish_endtag | ( | self, | |
tag | |||
) |
Definition at line 332 of file sgmllib.py.
References SGMLParser.handle_endtag(), SGMLParser.report_unbalanced(), MultiFile.stack, SGMLParser.stack, Pdb.stack, Unpickler.stack, HTMLParser.unknown_endtag(), SlowParser.unknown_endtag, and SGMLParser.unknown_endtag().
def finish_shorttag | ( | self, | |
tag, | |||
data | |||
) |
Definition at line 307 of file sgmllib.py.
References SGMLParser.finish_endtag(), SgmlopParser.finish_endtag, SGMLParser.finish_starttag(), SgmlopParser.finish_starttag, HTMLParser.handle_data(), SgmlopParser.handle_data, SlowParser.handle_data, and SGMLParser.handle_data().
def finish_starttag | ( | self, | |
tag, | |||
attrs | |||
) |
Definition at line 314 of file sgmllib.py.
References SGMLParser.handle_starttag(), HTMLParser.unknown_starttag(), SlowParser.unknown_starttag, and SGMLParser.unknown_starttag().
def get_starttag_text | ( | self) |
Definition at line 235 of file sgmllib.py.
References SGMLParser.__starttag_text.
def goahead | ( | self, | |
end | |||
) |
Definition at line 107 of file sgmllib.py.
References SGMLParser.error(), MH.error(), Folder.error(), SGMLParser.handle_charref(), HTMLParser.handle_data(), SgmlopParser.handle_data, SlowParser.handle_data, SGMLParser.handle_data(), SGMLParser.handle_entityref(), SGMLParser.literal, SGMLParser.nomoretags, SGMLParser.parse_comment(), SGMLParser.parse_endtag(), SGMLParser.parse_pi(), SGMLParser.parse_starttag(), and SGMLParser.rawdata.
def handle_charref | ( | self, | |
name | |||
) |
Handle character reference, no need to override.
Definition at line 376 of file sgmllib.py.
References HTMLParser.handle_data(), SgmlopParser.handle_data, SGMLParser.handle_data(), SlowParser.handle_data, and SGMLParser.unknown_charref().
def handle_comment | ( | self, | |
data | |||
) |
Definition at line 410 of file sgmllib.py.
def handle_data | ( | self, | |
data | |||
) |
Definition at line 406 of file sgmllib.py.
def handle_decl | ( | self, | |
decl | |||
) |
Definition at line 414 of file sgmllib.py.
def handle_endtag | ( | self, | |
tag, | |||
method | |||
) |
Definition at line 367 of file sgmllib.py.
def handle_entityref | ( | self, | |
name | |||
) |
Handle entity references. There should be no need to override this method; it can be tailored by setting up the self.entitydefs mapping appropriately.
Definition at line 392 of file sgmllib.py.
References SGMLParser.entitydefs, HTMLParser.handle_data(), SgmlopParser.handle_data, SGMLParser.handle_data(), SlowParser.handle_data, and SGMLParser.unknown_entityref().
def handle_pi | ( | self, | |
data | |||
) |
Definition at line 418 of file sgmllib.py.
def handle_starttag | ( | self, | |
tag, | |||
method, | |||
attrs | |||
) |
Definition at line 363 of file sgmllib.py.
def parse_comment | ( | self, | |
i, | |||
report = 1 |
|||
) |
Definition at line 206 of file sgmllib.py.
References SGMLParser.error(), MH.error(), Folder.error(), SGMLParser.handle_comment(), and SGMLParser.rawdata.
def parse_endtag | ( | self, | |
i | |||
) |
Definition at line 294 of file sgmllib.py.
References SGMLParser.finish_endtag(), SgmlopParser.finish_endtag, string.lower(), SGMLParser.rawdata, and string.strip().
def parse_pi | ( | self, | |
i | |||
) |
Definition at line 222 of file sgmllib.py.
References SGMLParser.error(), MH.error(), Folder.error(), SGMLParser.handle_pi(), and SGMLParser.rawdata.
def parse_starttag | ( | self, | |
i | |||
) |
Definition at line 239 of file sgmllib.py.
References SGMLParser.__starttag_text, SGMLParser.error(), MH.error(), Folder.error(), SGMLParser.finish_shorttag(), SGMLParser.finish_starttag(), SgmlopParser.finish_starttag, SGMLParser.lasttag, string.lower(), and SGMLParser.rawdata.
def report_unbalanced | ( | self, | |
tag | |||
) |
Definition at line 371 of file sgmllib.py.
References MultiFile.stack, SGMLParser.stack, Pdb.stack, Unpickler.stack, SGMLParser.verbose, _Verbose.verbose, and Tester.verbose.
def reset | ( | self) |
Reset this instance. Loses all unprocessed data.
Definition at line 63 of file sgmllib.py.
def setliteral | ( | self, | |
args | |||
) |
Enter literal mode (CDATA). Intended for derived classes only.
Definition at line 79 of file sgmllib.py.
References SGMLParser.literal.
def setnomoretags | ( | self) |
Enter literal mode (CDATA) till EOF. Intended for derived classes only.
Definition at line 72 of file sgmllib.py.
References SGMLParser.literal, and SGMLParser.nomoretags.
def unknown_charref | ( | self, | |
ref | |||
) |
Definition at line 424 of file sgmllib.py.
def unknown_endtag | ( | self, | |
tag | |||
) |
Definition at line 423 of file sgmllib.py.
def unknown_entityref | ( | self, | |
ref | |||
) |
Definition at line 425 of file sgmllib.py.
def unknown_starttag | ( | self, | |
tag, | |||
attrs | |||
) |
Definition at line 422 of file sgmllib.py.
|
static |
Definition at line 389 of file sgmllib.py.
lasttag |
Definition at line 67 of file sgmllib.py.
literal |
Definition at line 69 of file sgmllib.py.
nomoretags |
Definition at line 68 of file sgmllib.py.
rawdata |
Definition at line 65 of file sgmllib.py.
stack |
Definition at line 66 of file sgmllib.py.
verbose |
Definition at line 60 of file sgmllib.py.