class ExportLinker(BaseLinker): (source)
Known subclasses: zim.export.linker.StaticExportLinker
, zim.www.WWWLinker
Unknown Field: todo | |
info on formats to know how to set "usebase" |
Method | __init__ |
No summary |
Method | file_object |
Turn a File object in a relative link or URI |
Method | img |
Returns an url for image file 'src' |
Method | link |
Returns an url for a link in a zim page This method is used to translate links of any type. |
Method | page_object |
Turn a Path object in a relative link or URI |
Method | resolve_dest_file |
Find the destination file for an attachment @returns: a File object |
Method | resolve_source_file |
No summary |
Method | resource |
Return an url for template resources |
Instance Variable | base |
Undocumented |
Instance Variable | document_root_url |
Undocumented |
Instance Variable | layout |
Undocumented |
Instance Variable | notebook |
Undocumented |
Instance Variable | output |
Undocumented |
Instance Variable | source |
Undocumented |
Instance Variable | usebase |
Undocumented |
Method | _link_file |
Undocumented |
Method | _link_interwiki |
Undocumented |
Method | _link_mailto |
Undocumented |
Method | _link_notebook |
Undocumented |
Method | _link_page |
Undocumented |
Method | _resolve_file |
Undocumented |
zim.export.linker.StaticExportLinker
, zim.www.WWWLinker
Parameters | |
notebook | the source Notebook for resolving links |
layout | the ExportLayout for resolving target files |
source | is the Path of the source page being exported |
output | is a File object for the destination file |
usebase | if True the format allows returning relative paths |
document_root_url | optional URL for the document root |
zim.formats.BaseLinker.file_object
zim.www.WWWLinker
File
object in a relative link or URIzim.formats.BaseLinker.link
Parameters | |
link | link to be translated |
Returns | |
url, uri, or relative path context of this linker |
zim.formats.BaseLinker.page_object
zim.www.WWWLinker
Path
object in a relative link or URIzim.www.WWWLinker
Returns | |
a File object or None if no file was found |
zim.formats.BaseLinker.resource
zim.www.WWWLinker