test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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__
 
def add_key
 
- Public Member Functions inherited from data_sources.json_data_node
def __init__
 
def __str__
 
def data
 
def find
 
def get
 
def raw
 
def set
 

Private Attributes

 _data
 

Additional Inherited Members

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

Detailed Description

Definition at line 403 of file data_sources.py.

Constructor & Destructor Documentation

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

Definition at line 405 of file data_sources.py.

406  def __init__(self, data=None):
407  self._data = data if data != None else {}

Member Function Documentation

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

Definition at line 408 of file data_sources.py.

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

409  def add_key(self, data, key):
410  if data.__class__.__name__ in ["json_list", "json_dict", "json_basic"]:
411  data = data.data()
412  self._data[key] = data
413 
# for strings, integers, etc

Member Data Documentation

data_sources.json_dict._data
private

Definition at line 406 of file data_sources.py.

Referenced by XML2Python.DataNode.__init__(), python.XML2Python.DataNode.__nonzero__(), XML2Python.DataNode.__nonzero__(), python.XML2Python.DataNode.__repr__(), XML2Python.DataNode.__repr__(), XML2Python.DataNode.__str__(), python.XML2Python.DataNode.__str__(), cfg-viewer.unscheduled._proceed(), cfg-viewer.unscheduled._saveData(), and XML2Python.DataNode.stringify().