def load_config(self, filename):
conf = ConfigParser()<EOL>conf.read(filename)<EOL>for section in conf.sections():<EOL><INDENT>for key, value in conf.items(section):<EOL><INDENT>if section not in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>key = section + '<STR_LIT:.>' + key<EOL><DEDENT>self[key] = value<EOL><DEDENT><DEDENT>return self<EOL>
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).