Baby Language Lab Scripts
A collection of data processing tools.
 All Classes Namespaces Files Functions Variables Pages
db.bll_database Namespace Reference

Classes

class  BLLDatabase
 Provides BLL-app-specific data retreival and storage routines, building on the base database class. More...
 
class  DBConstants
 This class does an initial SQL select on database 'lookup tables' (tables containing information that is frequently used, but never updated while the program is running), and provides acess to this information in the form of a number of static data structures. More...
 

Functions

def _get_combos
 This function constructs the data structure used to initialize the DBConstants.COMBOS constant. More...
 
def _get_constants
 Populates the constants in the DBConstants class. More...
 

Function Documentation

def db.bll_database._get_combos (   db)
private

This function constructs the data structure used to initialize the DBConstants.COMBOS constant.

This is a dictionary - keys are elements of the enum COMBO_GROUPS, values are sub-dictionaries. Sub-dictionary keys are values of the enum COMBO_OPTIONS[group_id], values are ComboOption objects.

Parameters
db(BLLDatabase) database handle object
Returns
(dictionary) a dictionary, as described above

Definition at line 316 of file bll_database.py.

def db.bll_database._get_constants ( )
private

Populates the constants in the DBConstants class.

Definition at line 332 of file bll_database.py.