Package dimer :: Module config :: Class Configurable
[hide private]
[frames] | no frames]

Class Configurable

source code

object --+
         |
        Configurable

abstract class with factory method from a config file

to subclass, need to define

_types: types for properties _section: section on the confifg file

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self, path)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getAttr(self, attr) source code
 
setAttr(self, attr, val) source code
 
_config_check(self)
check as much as you can that values of params make sense
source code

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

Class Variables [hide private]
  __abstractmethods__ = frozenset(['_config_check'])
  _abc_cache = <_weakrefset.WeakSet object at 0x10ddbe710>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x10ddbe790>
  _abc_negative_cache_version = 23
  _abc_registry = <_weakrefset.WeakSet object at 0x10ddbe6d0>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_config_check(self)

source code 

check as much as you can that values of params make sense

Decorators:
  • @abc.abstractmethod