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

Classes

class  EmptyStringException
 

Functions

def createAudioFile (user, library, alias, relativeFilePath, realStartTime, staticUserMetaDataDict, md5digest=None)
 Create a new MediaFile (type audio) More...
 
def createTagExample (user, tagSet, audioFile, startTime, endTime, minFreq, maxFreq)
 Create a new TagExample in the Database. More...
 
def createTag (user, tagExample, tagClass, machineTagged, userTagged, strength)
 Create a new Tag in the Database. More...
 
def createTagClass (user, project, className, displayName)
 Add a new TagClass to a Project. More...
 

Function Documentation

def workspace.tools.views.create.createAudioFile (   user,
  library,
  alias,
  relativeFilePath,
  realStartTime,
  staticUserMetaDataDict,
  md5digest = None 
)

Create a new MediaFile (type audio)

Parameters
userUser object that owns the tag
libraryLibrary object in which this file will be stored.
aliasThe MediaFile 'alias' to store in the database
relativeFilePathThe 'relativeFilePath' of the MediaFile to store in the database, and to open the file
realStartTimeThe 'real' start date/time of the file. None if not applicable/known.
staticUserMetaDataDict
Returns
The new MediaFile object, None if failure
def workspace.tools.views.create.createTag (   user,
  tagExample,
  tagClass,
  machineTagged,
  userTagged,
  strength 
)

Create a new Tag in the Database.

Parameters
userUser object that owns the tag
tagExampleTagExample Object
tagClassTagClass Object
machineTaggedBoolean
userTaggedBoolean
strengthFloat
Returns
The new Tag Object
def workspace.tools.views.create.createTagClass (   user,
  project,
  className,
  displayName 
)

Add a new TagClass to a Project.

Parameters
userUser Object
projectThe Project Object to which the TagClass belongs
classNameThe Class Name of the new TagClass
displayNameThe Display Name of the new TagClass
Returns
The new TagClass object (None if failure)
def workspace.tools.views.create.createTagExample (   user,
  tagSet,
  audioFile,
  startTime,
  endTime,
  minFreq,
  maxFreq 
)

Create a new TagExample in the Database.

Parameters
userUser object that owns the tag
tagSetTagSet object to which this TagExample belongs
audioFileMediaFile object this TagExample references
startTimeSeconds from start of audioFile
endTimeSeconds from start of audioFile
minFreqHz
maxFreqHz
Returns
The new TagExample Object