lino.utils.media¶
Defines the MediaFile
class.
(This module's source code is available here.)
Functions
|
Classes
|
Represents a file on the server below |
|
-
class
lino.utils.media.
MediaFile
(editable, *parts)¶ Bases:
object
Represents a file on the server below
MEDIA_ROOT
with two propertiesname
andurl
.It also takes into consideration the settings
webdav_root
webdav_protocol
andwebdav_url
-
property
name
¶ return the filename on the server
-
get_url
(request)¶ return the url that points to file on the server
-
property