CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
data_sources.json_dict Class Reference
Inheritance diagram for data_sources.json_dict:
data_sources.json_data_node

Public Member Functions

def __init__ (self, data=None)
 
def add_key (self, data, key)
 
- Public Member Functions inherited from data_sources.json_data_node
def __str__ (self)
 
def data (self)
 
def find (self, type_name)
 
def get (self, *args)
 
def raw (self)
 
def set (self, data)
 

Private Attributes

 _data
 

Additional Inherited Members

- Static Public Member Functions inherited from data_sources.json_data_node
def make (data)
 

Detailed Description

Definition at line 372 of file data_sources.py.

Constructor & Destructor Documentation

◆ __init__()

def data_sources.json_dict.__init__ (   self,
  data = None 
)

Reimplemented from data_sources.json_data_node.

Definition at line 374 of file data_sources.py.

374  def __init__(self, data=None):
375  self._data = data if data != None else {}
376 

Member Function Documentation

◆ add_key()

def data_sources.json_dict.add_key (   self,
  data,
  key 
)

Definition at line 377 of file data_sources.py.

377  def add_key(self, data, key):
378  if data.__class__.__name__ in ["json_list", "json_dict", "json_basic"]:
379  data = data.data()
380  self._data[key] = data
381 
382 # for strings, integers, etc

References data_sources.node._data, data_sources.json_file._data, data_sources.sqlite_schema._data, and data_sources.json_data_node._data.

Member Data Documentation

◆ _data

data_sources.json_dict._data
private