ARLO Nester
|
Functions | |
def | getMediaFilePath (library, relativeFilePath) |
# MediaFile Paths # # More... | |
def | getJobResultFileUploadFilePath (instance, filename) |
# JobResultFiles # # More... | |
def | getExportFilePath (user, filename) |
# Export Files # # More... | |
def | getUsersJpegCacheDirectory (mediaFile) |
# Cache Files # # More... | |
def | getUsersSegmentCacheDirectory (mediaFile) |
Get the path to the segment (wav) cache storage. More... | |
Nester Settings for Managing properties of the installation. This is in parallel to the standard Django settings.py. This class is intended to keep Nester (ARLO) settings, keeping settings.py for Django specific settings. Notably this will be defining file paths. Use these functions to dynamically generate file paths. This abstracts the file storage structure. These paths are relative to MEDIA_ROOT (for the file system) and MEDIA_URL
def workspace.nesterSettings.getExportFilePath | ( | user, | |
filename | |||
) |
#
Export Files # #
Generate Path for an Export file, given it's base filename.
user | User object. |
filename | Name of the export file. |
def workspace.nesterSettings.getJobResultFileUploadFilePath | ( | instance, | |
filename | |||
) |
#
JobResultFiles # #
Generate Path for a JobResultFile upload.
instance | JobResultFile instance. |
filename | Name of the uploaded file. |
def workspace.nesterSettings.getMediaFilePath | ( | library, | |
relativeFilePath | |||
) |
#
MediaFile Paths # #
Given a username and mediafile name, generate the file path. This abstracts the file storage structure.
library | Library object that owns the file |
relativeFilePath | Relative path of the file (usually the filename) |
def workspace.nesterSettings.getUsersJpegCacheDirectory | ( | mediaFile | ) |
#
Cache Files # #
Get the path to the jpeg (spectra image) cache storage.
mediaFile | MediaFile object that corresponds to the image. |
def workspace.nesterSettings.getUsersSegmentCacheDirectory | ( | mediaFile | ) |
Get the path to the segment (wav) cache storage.
mediaFile | MediaFile object that corresponds to the segment. |