Bases: sqlalchemy.ext.declarative.Base
Sequence object to help manage sequence related data.
By definition a Sequence is a group of Shots.
The class should be initialized with a Project instance and a sequenceName.
When a Sequence instance is created it is not persisted in the project database. To do it the save() should be called.
The structure of the Sequence should be created by calling its create() method after it is saved.
Two sequences are considered to be the same if their name and their project names are matching.
Parameters: |
---|
Methods
__init__(project, name[, code]) | |
add_alternative_shot(shot_number) | adds a new alternative to the given shot |
add_shots(shot_range_formula) | adds new shots to the sequence |
create() | creates the sequence structure |
get_next_alternate_shot_number(shot_number) | returns the next alternate shot_number number for the given shot_number number |
query() | |
save() | persists the sequence in the database |
Attributes
code | |
description | |
id | |
metadata | A collection of Table objects and their associated schema constructs. |
name | |
project | a read-only attribute to return the related Project of this Sequence |
project_id | |
shots |
adds new shots to the sequence
shot_range_formula should be a range in on of the following format: # #,# #-# (not supported anymore) #,#-# (not supported anymore) #,#-#,# (not supported anymore) #-#,# (not supported anymore) etc.
adds a new alternative to the given shot
returns the alternative shot number