ARLO Nester
|
Classes | |
class | ViewTagForm |
Functions | |
def | tagInfo (tag) |
Build a dictionary of Tag data from a Tag object. More... | |
def | getTagInfo (request, tagID) |
Web interface wrapper around tagInfo(). More... | |
def | viewTag (request, tagID) |
Visualize an individual Tag and its properties. More... | |
def | viewParentTag (request, tagID) |
Redirect to a Tag's parent. More... | |
def | deleteTag (request, tagID) |
Delete a tag. More... | |
def | acceptTag (request, tagID) |
def | getTagsInAudioSegment (request, audioID, startTime, endTime, minFrequency, maxFrequency) |
Get a list of tags from a media file that are within a search window. More... | |
def | deleteAllInvalidTagExamples (request, projectId) |
Delete all Invaliduser tags for a Project. More... | |
def | createUserTag (request, projectID, audioID) |
Create a user tag. More... | |
def | navigateTags (request, projectID, audioID) |
Navigate through an audio file by jumping to the next, previous, first, or last tag. More... | |
def | newCreateUserTag (request, projectId) |
def | adjustTag (request, tagId) |
Adjust the data of an existing tag. More... | |
def | deleteTags (request, projectId) |
Web interface to delete tags. More... | |
def | getDeleteTagList (formData) |
Given data from a DeleteTagsForm, generate the list of Tags that will be deleted. More... | |
def | getDeleteTagCount (request, projectId) |
AJAX call used to count the number of tags that a delete operation will remove. More... | |
def workspace.tools.views.tag.acceptTag | ( | request, | |
tagID | |||
) |
def workspace.tools.views.tag.adjustTag | ( | request, | |
tagId | |||
) |
Adjust the data of an existing tag.
Must be a POST request.
request | the Django HTTP request. |
tagID | The database ID of the tag to adjust |
def workspace.tools.views.tag.createUserTag | ( | request, | |
projectID, | |||
audioID | |||
) |
Create a user tag.
request | The Django HTTP request. Must be a POST request |
projectId | Database ID of the Project |
audioID |
def workspace.tools.views.tag.deleteAllInvalidTagExamples | ( | request, | |
projectId | |||
) |
Delete all Invaliduser tags for a Project.
Note: This is currently not working after the Cassandra updates.
request | The Django HTTP request object |
projectID | The database ID of the Project from which to delete all user tags. |
def workspace.tools.views.tag.deleteTag | ( | request, | |
tagID | |||
) |
Delete a tag.
request | The Django HTTP request object |
tagID | The database ID of the tag to delete |
def workspace.tools.views.tag.deleteTags | ( | request, | |
projectId | |||
) |
Web interface to delete tags.
A GET will will display the DeleteTagsForm, and the subsequent POST will perform the actual delete. This presents a form that allows the user to filter tags to deleted.
request | The Django HTTP request object |
projectId | The database ID of the Project. |
def workspace.tools.views.tag.getDeleteTagCount | ( | request, | |
projectId | |||
) |
AJAX call used to count the number of tags that a delete operation will remove.
Must be a GET request containing DeleteTagsForm data.
request | The Django HTTP request object |
projectId | The database ID of the Project. |
def workspace.tools.views.tag.getDeleteTagList | ( | formData | ) |
Given data from a DeleteTagsForm, generate the list of Tags that will be deleted.
formData | Data from a DeleteTagsForm (form.cleaned_data) |
def workspace.tools.views.tag.getTagInfo | ( | request, | |
tagID | |||
) |
def workspace.tools.views.tag.getTagsInAudioSegment | ( | request, | |
audioID, | |||
startTime, | |||
endTime, | |||
minFrequency, | |||
maxFrequency | |||
) |
Get a list of tags from a media file that are within a search window.
i Tags need not be fully contained in the window; if any part of the tag is within the window it will be returned. Also, tags will be filtered for user permissions, i.e., the tags must be part of a project that the user has access to.
request | The Django request object |
audioID | The database ID of the audio file |
startTime | The start time of the search window. Seconds from the start of the file |
endTime | The end time of the search window. Seconds from the start of the file |
minFrequency | The minimum Frequency of the search window (Hz) |
maxFrequency | The maximum Frequency of the search window (Hz) |
def workspace.tools.views.tag.navigateTags | ( | request, | |
projectID, | |||
audioID | |||
) |
Navigate through an audio file by jumping to the next, previous, first, or last tag.
Expects a POST request with a NavigateTagClassForm. Return is a JSON dictionary, on success, {'success', 'tagID', 'startTime', 'endTime', 'userTagged', 'machineTagged'}. On error, {'success', 'errorMessage'}
request | the Django HTTP request. |
audioID | The database id of the AudioFile |
def workspace.tools.views.tag.newCreateUserTag | ( | request, | |
projectId | |||
) |
def workspace.tools.views.tag.tagInfo | ( | tag | ) |
Build a dictionary of Tag data from a Tag object.
tag | A Tag object |
def workspace.tools.views.tag.viewParentTag | ( | request, | |
tagID | |||
) |
Redirect to a Tag's parent.
request | The Django HTTP request object |
tagID | The database ID of the child Tag |
def workspace.tools.views.tag.viewTag | ( | request, | |
tagID | |||
) |
Visualize an individual Tag and its properties.
GET request views the tag, POST updates the Tag data.
request | The Django HTTP Request. |
tagID | The database ID of the tag to visualize. |