Package gnue :: Package common :: Package apps :: Module GConfig :: Class GConfigAlias
[show private | hide private]

Class GConfigAlias


This class provides access to the configuration options of a given section in a configuration file
Method Summary
  __init__(self, gconfig, name)
  gConfig(self, var_name, configFilename, section)
This method is deprecated.
  gconfig(self, var_name, config_filename, section)
Retrieve an option from a section in a configuration file

Method Details

__init__(self, gconfig, name)
(Constructor)

Parameters:
gconfig - gConfig() method of the configuration manager instance to be used for retrieval
           (type=function)
name - the default section to retrieve values from
           (type=string)

gConfig(self, var_name, configFilename=None, section=None)

This method is deprecated. Please use gconfig() instead.

gconfig(self, var_name, config_filename=None, section=None)

Retrieve an option from a section in a configuration file
Parameters:
var_name - name of the option to retrieve
           (type=string)
config_filename - name of the configuration file to retrieve the option from. If None, the default configuration file will be used.
           (type=string)
section - name of the section to retrieve the option from. If None, the default section will be used.
Returns:
the retrieve option value


GNUe Home

Public API

Developer's Corner