Trees | Indices | Help |
|
---|
|
A generic config object.
It has the following properties:
Classes derived from this must always declare __slots__ (we use many config objects and the memory reduction is useful)
|
|||
|
|||
|
|||
NoneType |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Validates the slots. This method returns This method must be implemented by the child classes.
|
Convert to a dict holding only standard python types. The generic routine just dumps all of this object's attributes in a dict. It does not work if the class has children who are ConfigObjects themselves (e.g. the nics list in an Instance), in which case the object should subclass the function in order to make sure all objects returned are only standard python types. Private fields can be included or not with the _with_private switch. The actual implementation of this switch is left for those subclassses with private fields to implement.
|
Convert to a dict holding only standard python types. The generic routine just dumps all of this object's attributes in a dict. It does not work if the class has children who are ConfigObjects themselves (e.g. the nics list in an Instance), in which case the object should subclass the function in order to make sure all objects returned are only standard python types. Private fields can be included or not with the _with_private switch. The actual implementation of this switch is left for those subclassses with private fields to implement.
|
Create an object from a dictionary. This generic routine takes a dict, instantiates a new instance of the given class, and sets attributes based on the dict content. As for `ToDict`, this does not work if the class has children who are ConfigObjects themselves (e.g. the nics list in an Instance), in which case the object should subclass the function and alter the objects. |
Implement __repr__ for ConfigObjects.
|
Fill defaults for missing configuration values. This method will be called at configuration load time, and its implementation will be object dependent. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:24 2016 | http://epydoc.sourceforge.net |