#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# '\n        Returns the value of the config variable. Builds the cache if it\n        does not exist.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . _cache [ key ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise ConfigNotFound ( ( _ ( 'The config variable %s was not found.' ) % key ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# self . setup_cache ( ) #NEWLINE# return self [ key ]