Public Member Functions | |
def | __init__ (self, config=None) |
def | __iter__ (self) |
def | __len__ (self) |
returns the length of an config element | |
def | __str__ (self) |
Returns the string representation of the internal config dict. | |
def | loadConfigFile (self, configPath) |
loads a given configuration file | |
def | get (self, *args, default=None) |
Get a single value from the config or a value set in a new configYAML class instance. | |
Protected Attributes | |
_config | |
def boswatch.configYaml.ConfigYAML.__init__ | ( | self, | |
config = None |
|||
) |
def boswatch.configYaml.ConfigYAML.__iter__ | ( | self | ) |
def boswatch.configYaml.ConfigYAML.__len__ | ( | self | ) |
returns the length of an config element
def boswatch.configYaml.ConfigYAML.__str__ | ( | self | ) |
Returns the string representation of the internal config dict.
def boswatch.configYaml.ConfigYAML.loadConfigFile | ( | self, | |
configPath | |||
) |
loads a given configuration file
@param configPath: Path to the config file @return True or False
def boswatch.configYaml.ConfigYAML.get | ( | self, | |
* | args, | ||
default = None |
|||
) |
Get a single value from the config or a value set in a new configYAML class instance.
*args | Config section (one ore more strings) |
default | Default value if section not found (None) |
|
protected |