Package peppy :: Package lib :: Module userparams :: Class PrefsProxy
[frames] | no frames]

Class PrefsProxy

      object --+    
               |    
debug.debugmixin --+
                   |
                  PrefsProxy

Dictionary-like object to provide global prefs to a class.

Implements a dictionary that returns a value for a keyword based on the class hierarchy. Each class will define a group of prefs and default values for each of those prefs. The class hierarchy then defines the search order if a setting is not found in a child class -- the search proceeds up the class hierarchy looking for the desired keyword.

Instance Methods
 
__init__(self, hier)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__getattr__(self, name)
 
__call__(self, name)
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value

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

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables
  debuglevel = 0
Properties

Inherited from object: __class__

Method Details

__init__(self, hier)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__setattr__(self, name, value)

 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)