tvaLib
Public Member Functions | Public Attributes | List of all members
lib.scene.Sites Class Reference

Generate site database. More...

Inheritance diagram for lib.scene.Sites:
lib.scene.SQLlists

Public Member Functions

def __init__ (self, nonOptionalArgs, kwargs)
 
def getBaseDirectory (self)
 
def exportToCode (self, moduleName='tvaMetaData', recursive=True)
 
- Public Member Functions inherited from lib.scene.SQLlists
def __init__ (self, class_prototype, sql_prototype, nonOptionalArgs, dir='', filename='scene.sqlite', kwargs)
 
def new (self, sqlFields={}, classFields)
 
def update (self)
 
def exportToCode (self, moduleName='tvaMetaData')
 
def objectFromDict (idx=0, kwargs)
 
def getAlchemyObject (self, idx)
 

Public Attributes

 config
 
- Public Attributes inherited from lib.scene.SQLlists
 nonOptionalArgs
 
 prototype
 
 class_prototype
 
 session
 

Detailed Description

Generate site database.

Definition at line 88 of file scene.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.scene.Sites.__init__ (   self,
  nonOptionalArgs,
  kwargs 
)
nonOptionalArgs includes a configuration. 

Definition at line 89 of file scene.py.

89  def __init__(self, *nonOptionalArgs, **kwargs):
90  ''' nonOptionalArgs includes a configuration. '''
91  self.config = nonOptionalArgs[0]
92  SQLlists.__init__(self, Site, tvaMetaData.Site, nonOptionalArgs, dir=nonOptionalArgs[0].dir, filename=nonOptionalArgs[0].dbn, **kwargs)
93  return
94 

Member Function Documentation

◆ exportToCode()

def lib.scene.Sites.exportToCode (   self,
  moduleName = 'tvaMetaData',
  recursive = True 
)

Definition at line 97 of file scene.py.

97  def exportToCode(self, moduleName='tvaMetaData', recursive=True):
98  for site in self:
99  site.exportToCode(moduleName, recursive=recursive)
100  if(not recursive):
101  for site in self:
102  for camera in site:
103  camera.exportToCode(moduleName, recursive=False)
104  for site in self:
105  for camera in site:
106  for sequence in camera:
107  sequence.exportToCode(moduleName, recursive=False)
108  return
109 

◆ getBaseDirectory()

def lib.scene.Sites.getBaseDirectory (   self)

Definition at line 95 of file scene.py.

95  def getBaseDirectory(self): return self.config.dir
96 

Member Data Documentation

◆ config

lib.scene.Sites.config

Definition at line 91 of file scene.py.


The documentation for this class was generated from the following file: