ARLO Nester
Classes | Functions
workspace.tools.views.catalog Namespace Reference

Classes

class  CatalogForm
 

Functions

def catalog (request, projectId)
 Web interface to display a 'catalog' of tags. More...
 
def sortTags (tags, sortBy)
 Sort tags by the real-time of the tag. More...
 

Function Documentation

def workspace.tools.views.catalog.catalog (   request,
  projectId 
)

Web interface to display a 'catalog' of tags.

A GET will will display the CatalogForm, and the subsequent POST will retrieve the data.

Parameters
requestThe Django HTTP request object
projectIdThe database ID of the Project.
Returns
Django HTTP response object Navigation Get Selected Libraries, TagSets, and TagClasses debug logging settings
def workspace.tools.views.catalog.sortTags (   tags,
  sortBy 
)

Sort tags by the real-time of the tag.

For each tag, calculate the real-time by the realStartTime of the file, and the file-startTime of the tag, and sort accordingly

Parameters
tagsA Django queryset of the tags to sort
sortOrderA string specifying the sort order - strings defined by the select box in models
Returns
A list of tag objects (not a queryset)