RoamFile¶
from mcot.org.database import RoamFile
- class mcot.org.database.RoamFile(filename: str, hash: str, contains: List[ForwardRef('RoamNode')] = <factory>)[source]¶
- __init__(filename: str, hash: str, contains: typing.List[mcot.org.database.RoamNode] = <factory>) None¶
Inheritance diagram
digraph inheritance0e29b13998 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "mcot.org.database.RoamFile" [URL="#mcot.org.database.RoamFile",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="RoamFile(filename: str, hash: str, contains: List[ForwardRef('RoamNode')] = <factory>)"]; }Methods
url([extension])How will target be availabe
Attributes
basenameexternal_refslinks_fromlinks_toroam_keytagstitletop_levelfilenamehashcontains
url¶
- RoamFile.url(extension='md')[source]¶
How will target be availabe
By default will return the filename with .org replaced by the extension, except for:
any date prefix is removed
if output is HTML introduction_to_my_brain will be replaced by index.html
identifier is added to the end
- Parameters
extension – filename extension to use
- Returns
url