Package PyFoam :: Package IPythonHelpers :: Module PermanentStorage :: Class PermanentStorage
[hide private]
[frames] | no frames]

Class PermanentStorage

source code


Access the stored values in the notebook

To make sure that only one object is created (so that multiple objects can't interfer) it is created as a singleton. See: A python singleton: http://code.activestate.com/recipes/52558/

Nested Classes [hide private]
  __permanentStorage
Actual implementation of the storage
Instance Methods [hide private]
 
__call__(self, name, f, call=True) source code
 
__contains__(self, key)
Is property in the metadata
source code
 
__delitem__(self, attr)
Delete property from the metadata
source code
 
__getattr__(self, attr)
Delegate access to implementation
source code
 
__getitem__(self, attr)
Get property from the metadata
source code
 
__init__(self)
Create the singleon
source code
 
__iter__(self)
Iterate over properties of the metadata
source code
 
__setattr__(self, attr, value)
Delegate access to implementation
source code
 
__setitem__(self, attr, value)
Set property in the metadata
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance = None
hash(x)
  _data = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create the singleon

Overrides: object.__init__

__setattr__(self, attr, value)

source code 

Delegate access to implementation

Overrides: object.__setattr__