Public Member Functions | |
def | __fix_link__ |
def | __init__ |
def | __is_link_local__ |
def | __is_link_toc__ |
def | get_local_links |
def | get_remote_links |
def | handle_starttag |
def | reset |
Public Attributes | |
local_links | |
local_set | |
remote_host | |
remote_set |
Fix HTML links (as well as images), so they point to the local files. If a local file is not available, the full link to the remote file is built. The list of available local files is given at initialization.
def wikidot.fixurl.FixURL.__init__ | ( | self, | |
links, | |||
host | |||
) |
def wikidot.fixurl.FixURL.__fix_link__ | ( | self, | |
link | |||
) |
def wikidot.fixurl.FixURL.__is_link_local__ | ( | self, | |
link | |||
) |
def wikidot.fixurl.FixURL.__is_link_toc__ | ( | self, | |
link | |||
) |
def wikidot.fixurl.FixURL.get_local_links | ( | self | ) |
def wikidot.fixurl.FixURL.get_remote_links | ( | self | ) |
def wikidot.fixurl.FixURL.handle_starttag | ( | self, | |
tag, | |||
attrs | |||
) |
Overidden - Parse links and convert them. <a> and <img> tags are looked for links.
Reimplemented from wikidot.myparser.MyParser.
def wikidot.fixurl.FixURL.reset | ( | self | ) |
Reset the parser's state
Reimplemented from wikidot.myparser.MyParser.