#NEWLINE# def __getattr__( self , key ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( not ( len ( settings . CONFIG [ key ] ) in ( 2 , 3 ) ) ) : #NEWLINE# #INDENT# raise AttributeError ( key ) #NEWLINE# #UNINDENT# default = settings . CONFIG [ key ] [ 0 ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise AttributeError ( key ) #NEWLINE# #UNINDENT# result = self . _backend . get ( key ) #NEWLINE# if ( result is None ) : #NEWLINE# #INDENT# result = default #NEWLINE# setattr ( self , key , default ) #NEWLINE# return result #NEWLINE# #UNINDENT# return result