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)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|
|||
|
|||
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
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. |
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. |
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. |
Convert the elements of a container to standard python types. This method converts a container with elements derived from ConfigData to standard python types. If the container is a dict, we don't touch the keys, only the values. |
Convert a container from standard python types. This method converts a container with standard python types to ConfigData objects. If the container is a dict, we don't touch the keys, only the values. |
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 Thu Dec 9 15:55:48 2010 | http://epydoc.sourceforge.net |