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

Generate site database. More...

Inheritance diagram for lib.scene.Sites:

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

- Public Attributes inherited from lib.scene.SQLlists

Detailed Description

Generate site database.

Definition at line 88 of file

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 89 of file

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

Member Function Documentation

◆ exportToCode()

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

Definition at line 97 of file

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

◆ getBaseDirectory()

def lib.scene.Sites.getBaseDirectory (   self)

Definition at line 95 of file

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

Member Data Documentation

◆ config


Definition at line 91 of file

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