(self, filename)
return self
Load values from an *.ini style config file.

            If the config file contains sections, their names are used as
            namespaces for the values within. The two special sections
            ``DEFAULT`` and ``bottle`` refer to the root namespace (no prefix).
Load values from an *.ini style config file.
Load values from an * . ini style config file .
def load_config(self, filename):
        ''' Load values from an *.ini style config file.

            If the config file contains sections, their names are used as
            namespaces for the values within. The two special sections
            ``DEFAULT`` and ``bottle`` refer to the root namespace (no prefix).
        '''
        conf = ConfigParser()
        conf.read(filename)
        for section in conf.sections():
            for key, value in conf.items(section):
                if section not in ('DEFAULT', 'bottle'):
                    key = section + '.' + key
                self[key] = value
        return self
def load_config ( self , filename ) : conf = ConfigParser ( ) conf . read ( filename ) for section in conf . sections ( ) : for key , value in conf . items ( section ) : if section not in ( 'DEFAULT' , 'bottle' ) : key = section + '.' + key self [ key ] = value return self