CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 370 of file data_sources.py.

Constructor & Destructor Documentation

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

Definition at line 372 of file data_sources.py.

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

Member Function Documentation

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

Definition at line 375 of file data_sources.py.

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

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

Member Data Documentation

data_sources.json_dict._data
private

Definition at line 373 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__(), and XML2Python.DataNode.stringify().