#NEWLINE# def __get__( self , obj , type = None ) : #NEWLINE# #INDENT# if ( obj is None ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# storage = self . lookup ( obj ) #NEWLINE# if ( self . name not in storage ) : #NEWLINE# #INDENT# return self . default #NEWLINE# #UNINDENT# rv = storage [ self . name ] #NEWLINE# if ( self . load_func is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# rv = self . load_func ( rv ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# rv = self . default #NEWLINE# #UNINDENT# #UNINDENT# return rv