Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino.utils.media¶
Defines the MediaFile class.
Classes
|
Represents a file on the server below |
|
- class lino.utils.media.MediaFile(editable, *parts)¶
Bases:
objectRepresents a file on the server below
MEDIA_ROOTwith two propertiespathandurl.It takes into consideration the settings
webdav_root,webdav_protocolandwebdav_url.- path¶
A
pathlib.Pathnaming the file on the server’s file system.
- url¶
The URL to use for getting this file from a web client.
Used by
lino.modlib.jinja.XMLMaker.get_xml_file(),lino.core.tables.AbstractTable.export_exceland others.