ARLO Nester
|
Classes | |
class | RenameMediaFileForm |
Form used by renameMediaFile. More... | |
Functions | |
def | enableAllAudioFiles (request, projectId) |
Enable all audio files for a Project For all audio files in a Project, loop through and set them as 'active' Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific. More... | |
def | disableAllAudioFiles (request, projectId) |
Disable all audio files for a Project For all audio files in a Project, loop through and set them as 'active' = false Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific. More... | |
def | disableAudioFile (request, audioID, projectId) |
Disable an audio file from a project Set the audio file in a Project as 'active' = false Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific. More... | |
def | enableAudioFile (request, audioID, projectId) |
Enable an audio file from a project Set the audio file in a Project as 'active' Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific. More... | |
def | renameMediaFile (request, mediaID) |
Renames a mediaFile, either the alias and/or path name on disk. More... | |
def | deleteAudioFile (audioID) |
Deletes wav file, jpgs, segments, features, MetaData, TagExamples, Tags. More... | |
def | deleteAudio (request, audioID) |
Deletes MediaFile (by calling deleteAudioFile()) More... | |
def | audioFiles (request) |
Display all media files owned by a user (/tools/audioFiles). More... | |
def | getAudioInfo (request, tagID) |
mediaFiles = MediaFile.objects.filter(user=user).order_by('alias') mediaFiles = MediaFile.objects.filter(user=user).order_by('uploadDate').reverse() totalFiles = len(mediaFiles) mediaFiles = mediaFiles[0:userSettings.maxNumAudioFilesToList] More... | |
def | deleteUserAudioFiles (request) |
Delete all Media Files for a user. More... | |
def | importAudioFiles (request) |
Pass-through call to Java backend for mass import function. More... | |
def | searchAudioFiles (request, projectId) |
Search through for AudioFiles alias and relativeFilePath. More... | |
def workspace.tools.views.audio.audioFiles | ( | request | ) |
Display all media files owned by a user (/tools/audioFiles).
request | The Django HTTP request object |
def workspace.tools.views.audio.deleteAudio | ( | request, | |
audioID | |||
) |
Deletes MediaFile (by calling deleteAudioFile())
audioID | The ID of the media file to toggle |
def workspace.tools.views.audio.deleteAudioFile | ( | audioID | ) |
Deletes wav file, jpgs, segments, features, MetaData, TagExamples, Tags.
audioID | The ID of the media file to delete |
def workspace.tools.views.audio.deleteUserAudioFiles | ( | request | ) |
Delete all Media Files for a user.
request | The Django HTTP request object |
def workspace.tools.views.audio.disableAllAudioFiles | ( | request, | |
projectId | |||
) |
Disable all audio files for a Project For all audio files in a Project, loop through and set them as 'active' = false Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific.
request | The Django HTTP request object |
projectId | Project Id |
def workspace.tools.views.audio.disableAudioFile | ( | request, | |
audioID, | |||
projectId | |||
) |
Disable an audio file from a project Set the audio file in a Project as 'active' = false Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific.
request | The Django HTTP request object |
audioID | The ID of the media file to toggle |
projectId | Project Id, only used for the response URL |
def workspace.tools.views.audio.enableAllAudioFiles | ( | request, | |
projectId | |||
) |
Enable all audio files for a Project For all audio files in a Project, loop through and set them as 'active' Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific.
request | The Django HTTP request object |
projectId | Project Id |
def workspace.tools.views.audio.enableAudioFile | ( | request, | |
audioID, | |||
projectId | |||
) |
Enable an audio file from a project Set the audio file in a Project as 'active' Note: In future versions, we'll likely move the 'active' tag from tools_mediafile to something more project specific.
request | The Django HTTP request object |
audioID | The ID of the media file to toggle |
projectId | Project Id, only used for the response URL |
def workspace.tools.views.audio.getAudioInfo | ( | request, | |
tagID | |||
) |
mediaFiles = MediaFile.objects.filter(user=user).order_by('alias') mediaFiles = MediaFile.objects.filter(user=user).order_by('uploadDate').reverse() totalFiles = len(mediaFiles) mediaFiles = mediaFiles[0:userSettings.maxNumAudioFilesToList]
MediaFileList = [] for mediaFile in mediaFiles: MediaFileList.append( ( mediaFile.id, 0, getMetaDataEntry(mediaFile, 'startTime'), mediaFile.alias, mediaFile.relativeFilePath, mediaFile.sensor, 0, getMetaDataEntry(mediaFile, 'durationInSeconds') )) Get AudioFile info associated with a Tag. Namely used by JavaScript to get the AudioFileId to to open the audio file of a tag.
request | The Django HTTP request |
tagID | The database Id of the Tag |
def workspace.tools.views.audio.importAudioFiles | ( | request | ) |
Pass-through call to Java backend for mass import function.
request | The Django HTTP request object |
def workspace.tools.views.audio.renameMediaFile | ( | request, | |
mediaID | |||
) |
Renames a mediaFile, either the alias and/or path name on disk.
audioID | The ID of the media file to rename |
request | The Django HTTP request |
def workspace.tools.views.audio.searchAudioFiles | ( | request, | |
projectId | |||
) |
Search through for AudioFiles alias and relativeFilePath.
Search through EITHER all files the user owns OR, if projectId is supplied, through all of the files in that project. If searchString is not supplied, return all files. Match against 'searchString' in the GET data.
request | The Django HTTP request. Note that this expects a GET method with a 'searchString' variable. |
projectId | The database Id of a Project to search. |