Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.utils.media

Defines the MediaFile class.

Classes

MediaFile(editable, *parts)

Represents a file on the server below MEDIA_ROOT with two properties name and url.

TmpMediaFile(ar, fmt)

class lino.utils.media.MediaFile(editable, *parts)

Bases: object

Represents a file on the server below MEDIA_ROOT with two properties name and url.

It also takes into consideration the settings webdav_root webdav_protocol and webdav_url

property name

return the filename on the server

get_url(request)

return the url that points to file on the server